Fix pcbnewshell not showing namespace inspector tools

on msvc build with recent wxpython
This commit is contained in:
qu1ck 2021-01-29 19:58:30 -08:00 committed by Seth Hillbrand
parent 79a9d69ff5
commit 3199a88d54
1 changed files with 3 additions and 3 deletions

View File

@ -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,