Show More
@@ -1150,7 +1150,10 b' class IPShellMatplotlibQt4(IPShellQt4):' | |||||
1150 | # Factory functions to actually start the proper thread-aware shell |
|
1150 | # Factory functions to actually start the proper thread-aware shell | |
1151 |
|
1151 | |||
1152 | def check_gtk(mode): |
|
1152 | def check_gtk(mode): | |
|
1153 | try: | |||
1153 | import gtk |
|
1154 | import gtk | |
|
1155 | except ImportError: | |||
|
1156 | return mode | |||
1154 | if hasattr(gtk,'set_interactive'): |
|
1157 | if hasattr(gtk,'set_interactive'): | |
1155 | gtk.set_interactive(False) |
|
1158 | gtk.set_interactive(False) | |
1156 | return 'tkthread' |
|
1159 | return 'tkthread' |
General Comments 0
You need to be logged in to leave comments.
Login now