Part of twisted.internet View Source
In order to use this support, simply do the following:
from twisted.internet import gtk3reactor gtk3reactor.install()
If you wish to use a GApplication, register it with the reactor:
from twisted.internet import reactor reactor.registerGApplication(app)
Then use twisted.internet APIs as usual.
Class | Gtk3Reactor | A reactor using the gtk3+ event loop. |
Class | PortableGtk3Reactor | Portable GTK+ 3.x reactor. |
Function | install | Configure the Twisted mainloop to be run inside the gtk3+ mainloop. |