##// END OF EJS Templates
Update gui-qt.py example file so it works with the new Qt GUI support.
Thomas Kluyver -
Show More
@@ -35,6 +35,9 b" if __name__ == '__main__':"
35 sw.show()
35 sw.show()
36
36
37 try:
37 try:
38 from IPython import enable_qt4; enable_qt4(app)
38 from IPython.lib.inputhook import enable_qt4
39 enable_qt4()
40 from IPython.lib.guisupport import start_event_loop_qt4
41 start_event_loop_qt4(app)
39 except ImportError:
42 except ImportError:
40 app.exec_()
43 app.exec_()
General Comments 0
You need to be logged in to leave comments. Login now