From 57cfde312392b98ac5a99fde8abc62532974c953 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Wed, 8 Sep 2021 17:31:41 +0200 Subject: [PATCH] kicad_pyeditor.py: add missing imports Fixes #9109 https://gitlab.com/kicad/code/kicad/issues/9109 --- scripting/kicad_pyshell/kicad_pyeditor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripting/kicad_pyshell/kicad_pyeditor.py b/scripting/kicad_pyshell/kicad_pyeditor.py index f50661d419..4f955ebf5f 100644 --- a/scripting/kicad_pyshell/kicad_pyeditor.py +++ b/scripting/kicad_pyshell/kicad_pyeditor.py @@ -12,7 +12,7 @@ https://github.com/wxWidgets/Phoenix/tree/master/wx/py import wx from wx.py import crust, version, dispatcher, editwindow -from wx.py.editor import Editor +from wx.py.editor import Editor, openSingle, openMultiple, saveSingle, messageDialog from wx.py.buffer import Buffer from wx import stc @@ -906,9 +906,9 @@ class KiCadEditorFrame(KiCadPyFrame): def updateNamespace(self): """Update the buffer namespace for autocompletion and calltips.""" if self.buffer.updateNamespace(): - self.SetStatusText('Namespace updated') + self.parent.SetStatusText('Namespace updated') else: - self.SetStatusText('Error executing, unable to update namespace') + self.parent.SetStatusText('Error executing, unable to update namespace') class KiCadEditorNotebookFrame(KiCadEditorFrame):