Permalink
Browse files

fix docs&examples pointing to appstart_ methods renamed to enable_

  • Loading branch information...
1 parent fa42ce7 commit ce61b4c436f6f03dac5b1a6f107aaf7315e78e38 @minrk minrk committed Jun 30, 2011
View
4 docs/examples/lib/gui-gtk.py
@@ -34,8 +34,8 @@ def destroy(widget, data=None):
window.show()
try:
- from IPython.lib.inputhook import appstart_gtk
- appstart_gtk()
+ from IPython.lib.inputhook import enable_gtk
+ enable_gtk()
except ImportError:
gtk.main()
View
2 docs/examples/lib/gui-qt.py
@@ -35,6 +35,6 @@ def __init__(self, parent=None):
sw.show()
try:
- from IPython import appstart_qt4; appstart_qt4(app)
+ from IPython import enable_qt4; enable_qt4(app)
except ImportError:
app.exec_()
View
2 docs/examples/lib/gui-tk.py
@@ -27,6 +27,6 @@ def hello_world(self):
app = MyApp(root)
try:
- from IPython import appstart_tk; appstart_tk(root)
+ from IPython import enable_tk; enable_tk(root)
except ImportError:
root.mainloop()
View
4 docs/examples/lib/gui-wx.py
@@ -102,8 +102,8 @@ def OnInit(self):
app = MyApp(redirect=False, clearSigInt=False)
try:
- from IPython.lib.inputhook import appstart_wx
- appstart_wx(app)
+ from IPython.lib.inputhook import enable_wx
+ enable_wx(app)
except ImportError:
app.MainLoop()
View
6 docs/source/interactive/reference.txt
@@ -1238,13 +1238,13 @@ Second, when using the ``PyOSInputHook`` approach, a GUI application should
``PyOSInputHook``. This means that applications that are meant to be used both
in IPython and as standalone apps need to have special code to detects how the
application is being run. We highly recommend using IPython's
-:func:`appstart_` functions for this. Here is a simple example that shows the
+:func:`enable_foo` functions for this. Here is a simple example that shows the
recommended code that should be at the bottom of a wxPython using GUI
application::
try:
- from IPython import appstart_wx
- appstart_wx(app)
+ from IPython.lib.inputhook import enable_wx
+ enable_wx(app)
except ImportError:
app.MainLoop()

0 comments on commit ce61b4c

Please sign in to comment.