Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
14 changes: 8 additions & 6 deletions galleries/examples/user_interfaces/embedding_in_wx5_sgskip.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
<https://wiki.wxpython.org/How%20to%20use%20Widget%20Inspection%20Tool%20-%20WIT%20%28Phoenix%29>`_
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 \
Expand Down Expand Up @@ -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()
Expand Down
Loading