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 help(type(x)) for signature
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Dec 15 19:07:38 2017 | http://epydoc.sourceforge.net |