I See Dead Code

… as sounding brass, or a tinkling cymbal.

I See Dead Code header image 4

Breaking Event Cycles

Juli 12th, 2009 · No Comments

A recurring problem in (not only) GUI programming are event cycles, i.e. the receiving of events oneself has triggered. These can quickly lead to event cycles, where change triggers change triggers change, until something gives out—usually the stack. A particularly cheap way of breaking cycles are simple boolean flags: class Foo(object): listen = True def [...]

[Read more →]

Tags: python