connectors/SchemeEditor.py
changeset 2537 eb4a4cc41914
parent 2492 7dd551ac2fa0
child 3303 0ffb41625592
--- a/connectors/SchemeEditor.py	Wed Mar 13 10:19:30 2019 +0300
+++ b/connectors/SchemeEditor.py	Wed Mar 13 11:47:03 2019 +0300
@@ -26,7 +26,7 @@
             self.txtctrls[tag] = txtctrl
             for win, flag in [
                     (wx.StaticText(self, label=label),
-                    wx.ALIGN_CENTER_VERTICAL),
+                     wx.ALIGN_CENTER_VERTICAL),
                     (txtctrl, wx.GROW)]:
                 self.fieldsizer.AddWindow(win, flag=flag)
 
@@ -39,7 +39,7 @@
                 self, parent.ctr,
                 # use a callafter, as editor can be deleted by calling SetURI
                 partial(wx.CallAfter, parent.SetURI),
-                self.txtctrls[tag].SetValue)
+                self.txtctrls["ID"].SetValue)
             self.mainsizer.AddWindow(self.idselector)
             self.SetSizer(self.mainsizer)
         else: