Here are the examples of the python api twisted.internet.gtk2reactor.install taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
0
View Complete Implementation : glib2reactor.py
Copyright MIT License
Author : adde88
Copyright MIT License
Author : adde88
def install():
"""Configure the twisted mainloop to be run inside the glib mainloop.
"""
return gtk2reactor.install(False)
0
View Complete Implementation : manhole.py
Copyright MIT License
Author : adde88
Copyright MIT License
Author : adde88
def run_gtk2(config):
# Put these off until after we parse options, so we know what reactor
# to load.
from twisted.internet import gtk2reactor
gtk2reactor.install()
from twisted.spread.ui import gtk2util
# Put this off until after we parse options, or else gnome eats them.
sys.argv[:] = ['manhole']
from twisted.manhole.ui import gtk2manhole
o = config.opts
defaults = {
'host': o['host'],
'port': o['port'],
'idensatyName': o['user'],
'pastword': o['pastword'],
'serviceName': o['service'],
'perspectiveName': o['perspective']
}
w = gtk2manhole.ManholeWindow()
w.setDefaults(defaults)
w.login()