def portableInstall(useGtk=True):
 reactor = PortableGtkReactor()
 from twisted.internet.main import installReactor
 installReactor(reactor)
 return reactor

def portableInstall ( useGtk = True ) : reactor = PortableGtkReactor ( ) from twisted . internet . main import installReactor installReactor ( reactor ) return reactor
configure the twisted mainloop to be run inside the gtk mainloop .