From 3199a88d5406a0f67e00f9d243ac098f7c46f313 Mon Sep 17 00:00:00 2001 From: qu1ck Date: Fri, 29 Jan 2021 19:58:30 -0800 Subject: [PATCH] Fix pcbnewshell not showing namespace inspector tools on msvc build with recent wxpython --- pcbnew/python/kicad_pyshell/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pcbnew/python/kicad_pyshell/__init__.py b/pcbnew/python/kicad_pyshell/__init__.py index b7bae757c8..fb3ca8081a 100644 --- a/pcbnew/python/kicad_pyshell/__init__.py +++ b/pcbnew/python/kicad_pyshell/__init__.py @@ -86,10 +86,10 @@ class PcbnewPyShell(editor.EditorNotebookFrame): self.autoSaveHistory = False self.LoadSettings() - # in case of wxPhoenix we need to create a wxApp first and store it - # to prevent removal by gabage collector + # in case of wxPhoenix we may need to create a wxApp first and store it + # to prevent removal by garbage collector if 'phoenix' in wx.PlatformInfo: - self.theApp = wx.App() + self.theApp = wx.GetApp() or wx.App() self.crust = crust.Crust(parent=self.notebook, intro=intro, locals=namespace,