backport of XRCed changes from today

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45726 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2007-05-01 06:03:28 +00:00
parent 3f4ec51e47
commit c3e1d30aea
6 changed files with 45 additions and 11 deletions

View File

@@ -397,9 +397,11 @@ class ParamUnit(PPanel):
def GetValue(self):
return self.text.GetValue()
def SetValue(self, value):
self.freeze = True
if not value: value = '0'
self.text.SetValue(value)
self.Change(0)
self.freeze = False
def Change(self, x):
self.freeze = True
# Check if we are working with dialog units