Exemple #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)
Exemple #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
Exemple #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)
Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #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
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
Exemple #12
0
def install():
    r = IOCPReactor()
    main.installReactor(r)
Exemple #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)
Exemple #15
0
def install():
    k = KQueueReactor()
    main.installReactor(k)
Exemple #16
0
def install():
    r = IOCPReactor()
    main.installReactor(r)