##// END OF EJS Templates
Initialise threads for pygtk input hook
Thomas Kluyver -
Show More
@@ -39,6 +39,9 b' from __future__ import absolute_import'
39
39
40 import gtk, gobject
40 import gtk, gobject
41
41
42 # Enable threading in GTK. (Otherwise, GTK will keep the GIL.)
43 gtk.gdk.threads_init()
44
42 def inputhook(context):
45 def inputhook(context):
43 """
46 """
44 When the eventloop of prompt-toolkit is idle, call this inputhook.
47 When the eventloop of prompt-toolkit is idle, call this inputhook.
General Comments 0
You need to be logged in to leave comments. Login now