Part of twisted.internet View Source
This module provides wxPython event loop support for Twisted.
In order to use this support, simply do the following:| from twisted.internet import wxreactor | wxreactor.install()Then, when your root wxApp has been created:
| from twisted.internet import reactor | reactor.registerWxApp(yourApp) | reactor.run()
Then use twisted.internet APIs as usual. Stop the event loop using reactor.stop(), not yourApp.ExitMainLoop().
IMPORTANT: tests will fail when run under this reactor. This is expected and probably does not reflect on the reactor's ability to run real applications.Class | ProcessEventsTimer | Timer that tells wx to process pending events. |
Class | WxReactor | wxPython reactor. |
Function | install | Configure the twisted mainloop to be run inside the wxPython mainloop. |