Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
NiCallBackExample
Edit
PageHistory
Diff
Info
LikePages
Example: class !MainLoop: def callback() 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): main.registerCallback(self.callback) def callback(self): stdio.print("Hello World")
No page links to
NiCallBackExample
.