editors/ConfTreeNodeEditor.py
changeset 1179 3e7bd88fcff7
parent 1162 a2b4d366bc66
child 1180 276a30c68eaa
equal deleted inserted replaced
1178:3e2aebc9c7c0 1179:3e7bd88fcff7
   529         def OnTextCtrlChanged(event):
   529         def OnTextCtrlChanged(event):
   530             res = self.SetConfNodeParamsAttribute(path, textctrl.GetValue())
   530             res = self.SetConfNodeParamsAttribute(path, textctrl.GetValue())
   531             if res != textctrl.GetValue():
   531             if res != textctrl.GetValue():
   532                 if isinstance(textctrl, wx.SpinCtrl):
   532                 if isinstance(textctrl, wx.SpinCtrl):
   533                     textctrl.SetValue(res)
   533                     textctrl.SetValue(res)
   534                 else:
   534                 elif res is not None:
   535                     textctrl.ChangeValue(res)
   535                     textctrl.ChangeValue(str(res))
   536             if refresh:
   536             if refresh:
   537                 wx.CallAfter(self.ParentWindow._Refresh, TITLE, FILEMENU, PROJECTTREE, PAGETITLES)
   537                 wx.CallAfter(self.ParentWindow._Refresh, TITLE, FILEMENU, PROJECTTREE, PAGETITLES)
   538                 wx.CallAfter(self.ParentWindow.SelectProjectTreeItem, self.GetTagName())
   538                 wx.CallAfter(self.ParentWindow.SelectProjectTreeItem, self.GetTagName())
   539             event.Skip()
   539             event.Skip()
   540         return OnTextCtrlChanged
   540         return OnTextCtrlChanged