示例#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)
示例#2
0
def install():
    """
    Install the epoll() reactor.
    """
    p = EPollReactor()
    from reqs.twisted.internet.main import installReactor
    installReactor(p)
示例#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
示例#4
0
def install():
    """
    Install the epoll() reactor.
    """
    p = EPollReactor()
    from reqs.twisted.internet.main import installReactor
    installReactor(p)
示例#5
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)
示例#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
示例#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
示例#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
示例#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
示例#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
示例#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
示例#12
0
def install():
    r = IOCPReactor()
    main.installReactor(r)
示例#13
0
def install():
    k = KQueueReactor()
    main.installReactor(k)
示例#14
0
def install():
    """Configure the twisted mainloop to be run using the select() reactor.
    """
    reactor = SelectReactor()
    from reqs.twisted.internet.main import installReactor
    installReactor(reactor)
示例#15
0
def install():
    k = KQueueReactor()
    main.installReactor(k)
示例#16
0
def install():
    r = IOCPReactor()
    main.installReactor(r)