Commits

Lucian Brănescu-Mihăilă  committed c690326

Add plain-twisted play for comparison

  • Participants
  • Parent commits 2c4802e

Comments (0)

Files changed (2)

 gtk3reactor.install()
 
 from twisted.internet import reactor
-from gi.repository import Gtk, Gio
+from gi.repository import Gtk, Gio, GLib
 
 def hello_cb(widget, data=None):
     print 'hello', widget
 
 reactor.callLater(1, hello)
 
+GLib.MainLoop().run()
 #app.run(None) # running without twisted works fine
 #reactor._run = partial(app.run, None) # without this, the app's activate event never fires
-reactor.run()
+#reactor.run(installSignalHandlers=False)
+from twisted.internet import reactor
+
+def hello():
+    print 'hello'
+
+reactor.run()