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:
parent
5d4133915f
commit
92631ff273
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user