def install(): """Configure the twisted mainloop to be run inside the gtk mainloop. """ reactor = GladeReactor() from twisted.internet.main import installReactor installReactor(reactor) return reactor