From 07a5a1a9f93ed0d6c8308c9e4e34fe618111146b Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 24 Aug 2016 14:14:07 -0700 Subject: [PATCH] The InspectionTool will call Init() itself when needed, we don't need to do it here. --- demo/Main.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/demo/Main.py b/demo/Main.py index 1373eaaa..a22a1903 100644 --- a/demo/Main.py +++ b/demo/Main.py @@ -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