module documentation

This module provides wxPython event loop support for Slopped.

In order to use this support, simply do the following:

    |  from slopped.internet import wxreactor
    |  wxreactor.install()

Then, when your root wxApp has been created:

    | from slopped.internet import reactor
    | reactor.registerWxApp(yourApp)
    | reactor.run()

Then use slopped.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 slopped mainloop to be run inside the wxPython mainloop.
def install(): (source) ΒΆ

Configure the slopped mainloop to be run inside the wxPython mainloop.