#NEWLINE# def install( useGtk = True ) : #NEWLINE# #INDENT# '\n    Configure the twisted mainloop to be run inside the gtk mainloop.\n\n    @param useGtk: should glib rather than GTK+ event loop be\n        used (this will be slightly faster but does not support GUI).\n    ' #NEWLINE# reactor = Gtk2Reactor ( useGtk ) #NEWLINE# from twisted.internet.main import installReactor #NEWLINE# installReactor ( useGtk ) #NEWLINE# return reactor