editors/ConfTreeNodeEditor.py
changeset 844 ec9e6ef49878
parent 840 980863738cf6
child 846 26836e421e19
--- a/editors/ConfTreeNodeEditor.py	Mon Oct 01 19:09:40 2012 +0200
+++ b/editors/ConfTreeNodeEditor.py	Mon Oct 01 19:10:51 2012 +0200
@@ -530,7 +530,10 @@
         def OnTextCtrlChanged(event):
             res = self.SetConfNodeParamsAttribute(path, textctrl.GetValue())
             if res != textctrl.GetValue():
-                textctrl.ChangeValue(res)
+                if isinstance(textctrl, wx.SpinCtrl):
+                    textctrl.SetValue(res)
+                else:
+                    textctrl.ChangeValue(res)
             if refresh:
                 wx.CallAfter(self.ParentWindow._Refresh, TITLE, FILEMENU, PROJECTTREE, PAGETITLES)
                 wx.CallAfter(self.ParentWindow.SelectProjectTreeItem, self.GetTagName())