Beispiel #1
0
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)
Beispiel #3
0
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
Beispiel #4
0
def install():
    """
    Install the epoll() reactor.
    """
    p = EPollReactor()
    from reqs.twisted.internet.main import installReactor
    installReactor(p)
def install():
    """
    Configure the twisted mainloop to be run inside the glib mainloop.
    """
    reactor = Glib2Reactor()
    from reqs.twisted.internet.main import installReactor
    installReactor(reactor)
Beispiel #6
0
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
Beispiel #7
0
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
Beispiel #8
0
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
Beispiel #9
0
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
Beispiel #10
0
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
Beispiel #11
0
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
Beispiel #12
0
def install():
    r = IOCPReactor()
    main.installReactor(r)
Beispiel #13
0
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)
Beispiel #15
0
def install():
    k = KQueueReactor()
    main.installReactor(k)
Beispiel #16
0
def install():
    r = IOCPReactor()
    main.installReactor(r)