diff --git a/doc/conf.py b/doc/conf.py index ec522851c673..4be3fcf3afee 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -275,6 +275,7 @@ def autodoc_process_bases(app, name, obj, options, bases): 'python': ('https://docs.python.org/3/', None), 'scipy': ('https://docs.scipy.org/doc/scipy/', None), 'tornado': ('https://www.tornadoweb.org/en/stable/', None), + 'wx': ('https://docs.wxpython.org/', None), 'xarray': ('https://docs.xarray.dev/en/stable/', None), 'meson-python': ('https://mesonbuild.com/meson-python/', None), 'pip': ('https://pip.pypa.io/en/stable/', None), diff --git a/galleries/examples/user_interfaces/embedding_in_wx5_sgskip.py b/galleries/examples/user_interfaces/embedding_in_wx5_sgskip.py index f150e2106ead..f5442ec1f700 100644 --- a/galleries/examples/user_interfaces/embedding_in_wx5_sgskip.py +++ b/galleries/examples/user_interfaces/embedding_in_wx5_sgskip.py @@ -3,11 +3,17 @@ Embed in wx #5 ============== +.. tip:: + + As a development and debugging aid, you can replace :class:`wx.App` + by :class:`wx.lib.mixins.inspection.InspectableApp`. + This adds the capability to start the `Widget Inspection Tool + `_ + via :kbd:`Ctrl-Alt-I`. """ import wx import wx.lib.agw.aui as aui -import wx.lib.mixins.inspection as wit from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas from matplotlib.backends.backend_wxagg import \ @@ -44,11 +50,7 @@ def add(self, name="plot"): def demo(): - # Alternatively you could use: - # app = wx.App() - # InspectableApp is a great debug tool, see: - # http://wiki.wxpython.org/Widget%20Inspection%20Tool - app = wit.InspectableApp() + app = wx.App() frame = wx.Frame(None, -1, 'Plotter') plotter = PlotNotebook(frame) axes1 = plotter.add('figure 1').add_subplot()