Differences between current version and revision by previous author of NiCallBackExample.
Other diffs: Previous Major Revision, Previous Revision, or view the Annotated Edit History
Newer page: | version 2 | Last edited on Tuesday, August 5, 2003 9:47:34 am | by WikiAdmin | |
Older page: | version 1 | Last edited on Thursday, July 4, 2002 1:41:41 pm | by PerryLorier | Revert |
@@ -1,17 +1,19 @@
-
class MainLoop:
+Example:
+
+
class !
MainLoop:
def callback()
- def main(self,[string] argv):
+ def main(self,[
[string] argv):
Event x=Event()
self.callback()
def registerCallBack(self,def callback()):
self.callback=callback
class Event:
- def __init__(self,MainLoop main):
+ def __init__(self,!
MainLoop main):
main.registerCallback(self.callback)
def callback(self):
stdio.print("Hello World")