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:
Roman Rolinsky 2006-06-05 17:48:00 +00:00
parent a9b4774c05
commit 96bfe7feee

View File

@ -639,7 +639,10 @@ class ParamContent(PPanel):
self.freeze = True
if not value: value = []
self.value = value
repr_ = reduce(lambda a,b: '%s|%s' % (a,b), value)
if value:
repr_ = reduce(lambda a,b: '%s|%s' % (a,b), value)
else:
repr_ = ''
self.text.SetValue(repr_) # update text ctrl
self.freeze = False
def OnButtonEdit(self, evt):