fix for empty value
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39570 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -639,7 +639,10 @@ class ParamContent(PPanel):
|
|||||||
self.freeze = True
|
self.freeze = True
|
||||||
if not value: value = []
|
if not value: value = []
|
||||||
self.value = value
|
self.value = value
|
||||||
|
if value:
|
||||||
repr_ = reduce(lambda a,b: '%s|%s' % (a,b), value)
|
repr_ = reduce(lambda a,b: '%s|%s' % (a,b), value)
|
||||||
|
else:
|
||||||
|
repr_ = ''
|
||||||
self.text.SetValue(repr_) # update text ctrl
|
self.text.SetValue(repr_) # update text ctrl
|
||||||
self.freeze = False
|
self.freeze = False
|
||||||
def OnButtonEdit(self, evt):
|
def OnButtonEdit(self, evt):
|
||||||
|
Reference in New Issue
Block a user