Skip to content
This repository
Browse code

fix docs&examples pointing to appstart_ methods renamed to enable_

  • Loading branch information...
commit ce61b4c436f6f03dac5b1a6f107aaf7315e78e38 1 parent fa42ce7
Min RK minrk authored
4 docs/examples/lib/gui-gtk.py
@@ -34,8 +34,8 @@ def destroy(widget, data=None):
34 34 window.show()
35 35
36 36 try:
37   - from IPython.lib.inputhook import appstart_gtk
38   - appstart_gtk()
  37 + from IPython.lib.inputhook import enable_gtk
  38 + enable_gtk()
39 39 except ImportError:
40 40 gtk.main()
41 41
2  docs/examples/lib/gui-qt.py
@@ -35,6 +35,6 @@ def __init__(self, parent=None):
35 35 sw.show()
36 36
37 37 try:
38   - from IPython import appstart_qt4; appstart_qt4(app)
  38 + from IPython import enable_qt4; enable_qt4(app)
39 39 except ImportError:
40 40 app.exec_()
2  docs/examples/lib/gui-tk.py
@@ -27,6 +27,6 @@ def hello_world(self):
27 27 app = MyApp(root)
28 28
29 29 try:
30   - from IPython import appstart_tk; appstart_tk(root)
  30 + from IPython import enable_tk; enable_tk(root)
31 31 except ImportError:
32 32 root.mainloop()
4 docs/examples/lib/gui-wx.py
@@ -102,8 +102,8 @@ def OnInit(self):
102 102 app = MyApp(redirect=False, clearSigInt=False)
103 103
104 104 try:
105   - from IPython.lib.inputhook import appstart_wx
106   - appstart_wx(app)
  105 + from IPython.lib.inputhook import enable_wx
  106 + enable_wx(app)
107 107 except ImportError:
108 108 app.MainLoop()
109 109
6 docs/source/interactive/reference.txt
@@ -1238,13 +1238,13 @@ Second, when using the ``PyOSInputHook`` approach, a GUI application should
1238 1238 ``PyOSInputHook``. This means that applications that are meant to be used both
1239 1239 in IPython and as standalone apps need to have special code to detects how the
1240 1240 application is being run. We highly recommend using IPython's
1241   -:func:`appstart_` functions for this. Here is a simple example that shows the
  1241 +:func:`enable_foo` functions for this. Here is a simple example that shows the
1242 1242 recommended code that should be at the bottom of a wxPython using GUI
1243 1243 application::
1244 1244
1245 1245 try:
1246   - from IPython import appstart_wx
1247   - appstart_wx(app)
  1246 + from IPython.lib.inputhook import enable_wx
  1247 + enable_wx(app)
1248 1248 except ImportError:
1249 1249 app.MainLoop()
1250 1250

0 comments on commit ce61b4c

Please sign in to comment.
Something went wrong with that request. Please try again.