]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/tools/XRCed/params.py
added missing button state
[wxWidgets.git] / wxPython / wx / tools / XRCed / params.py
index c5f3f198e334bd1f31faedebb82bc8392c6b99f0..71a74149892cafc77b8341df667b861ed0b1818e 100644 (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):