Show More
@@ -776,6 +776,17 b' class IPShellGTK(IPThread):' | |||
|
776 | 776 | debug=1,shell_class=MTInteractiveShell): |
|
777 | 777 | |
|
778 | 778 | import gtk |
|
779 | # Check for set_interactive, coming up in new pygtk. | |
|
780 | # Disable it so that this code works, but notify | |
|
781 | # the user that he has a better option as well. | |
|
782 | # XXX TODO better support when set_interactive is released | |
|
783 | try: | |
|
784 | gtk.set_interactive(False) | |
|
785 | print "Your PyGtk has set_interactive(), so you can use the" | |
|
786 | print "more stable single-threaded Gtk mode." | |
|
787 | print "See https://bugs.launchpad.net/ipython/+bug/270856" | |
|
788 | except AttributeError: | |
|
789 | pass | |
|
779 | 790 | |
|
780 | 791 | self.gtk = gtk |
|
781 | 792 | self.gtk_mainloop = hijack_gtk() |
General Comments 0
You need to be logged in to leave comments.
Login now