Trees | Indices | Help |
|
---|
|
object --+ | Event
Usage:
>>> myEvent = Event() # a, b >>> callback1 = lambda a, b: dostuff(a, b) >>> callback2 = lambda a, b: otherstuff(a, b) >>> myEvent += callback1 >>> myEvent += callback2 >>> myEvent(a, b) # calls both callbacks >>> myEvent -= callback1 >>> myEvent -= callback2 >>> myEvent(a, b) # no callbacks; does nothing
Note: this is a great source of circular references; see gc.collect()
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Mar 15 15:30:13 2012 | http://epydoc.sourceforge.net |