make sure some types convert right in XRCed

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13902 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2002-01-29 01:28:11 +00:00
parent 5d4133915f
commit 92631ff273

View File

@ -153,6 +153,7 @@ class ParamColour(PPanel):
return self.value
def SetValue(self, value):
self.freeze = true
value = string.strip(value)
if not value: value = '#FFFFFF'
self.value = value
self.text.SetValue(str(value)) # update text ctrl
@ -282,6 +283,7 @@ class ParamInt(PPanel):
return str(self.spin.GetValue())
def SetValue(self, value):
self.freeze = true
value = string.strip(value)
if not value: value = 0
self.spin.SetValue(int(value))
self.freeze = false