mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 19:10:09 +01:00
The InspectionTool will call Init() itself when needed, we don't need to do it here.
This commit is contained in:
@@ -2459,13 +2459,10 @@ class wxPythonDemo(wx.Frame):
|
||||
|
||||
|
||||
def OnOpenWidgetInspector(self, evt):
|
||||
# Activate the widget inspection tool
|
||||
# Activate the widget inspection tool, giving it a widget to preselect
|
||||
# in the tree. Use either the one under the cursor, if any, or this
|
||||
# frame.
|
||||
from wx.lib.inspection import InspectionTool
|
||||
if not InspectionTool().initialized:
|
||||
InspectionTool().Init()
|
||||
|
||||
# Find a widget to be selected in the tree. Use either the
|
||||
# one under the cursor, if any, or this frame.
|
||||
wnd = wx.FindWindowAtPointer()
|
||||
if not wnd:
|
||||
wnd = self
|
||||
|
||||
Reference in New Issue
Block a user