def install(): """ Configure the twisted mainloop to be run inside the glib mainloop. """ reactor = Glib2Reactor() from reqs.twisted.internet.main import installReactor installReactor(reactor)
def install(): """ Install the epoll() reactor. """ p = EPollReactor() from reqs.twisted.internet.main import installReactor installReactor(p)
def portableInstall(): """Configure the twisted mainloop to be run inside the gtk mainloop. """ reactor = PortableGtkReactor() from reqs.twisted.internet.main import installReactor installReactor(reactor) return reactor
def install(): """ Configure the twisted mainloop to be run inside the wxPython mainloop. """ reactor = WxReactor() from reqs.twisted.internet.main import installReactor installReactor(reactor) return reactor
def install(runLoop=None): """Configure the twisted mainloop to be run inside CFRunLoop. """ reactor = CFReactor(runLoop=runLoop) reactor.addSystemEventTrigger('after', 'shutdown', reactor.cleanup) from reqs.twisted.internet.main import installReactor installReactor(reactor) return reactor
def install(useGtk=True): """ Configure the twisted mainloop to be run inside the gtk mainloop. @param useGtk: should glib rather than GTK+ event loop be used (this will be slightly faster but does not support GUI). """ reactor = Gtk2Reactor(useGtk) from reqs.twisted.internet.main import installReactor installReactor(reactor) return reactor
def install(): r = IOCPReactor() main.installReactor(r)
def install(): k = KQueueReactor() main.installReactor(k)
def install(): """Configure the twisted mainloop to be run using the select() reactor. """ reactor = SelectReactor() from reqs.twisted.internet.main import installReactor installReactor(reactor)