kicad_pyeditor.py: add missing imports

Fixes #9109
https://gitlab.com/kicad/code/kicad/issues/9109
This commit is contained in:
jean-pierre charras 2021-09-08 17:31:41 +02:00
parent 0e96ac4d7b
commit 57cfde3123
1 changed files with 3 additions and 3 deletions

View File

@ -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):