X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e484fddf08d62b205947eec9f071c7e68d0d1741..0a5bb138a71dfc1c706fc0858fb2801500e2c2e8:/wxPython/wx/tools/XRCed/params.py diff --git a/wxPython/wx/tools/XRCed/params.py b/wxPython/wx/tools/XRCed/params.py index c5f3f198e3..71a7414989 100644 --- a/wxPython/wx/tools/XRCed/params.py +++ b/wxPython/wx/tools/XRCed/params.py @@ -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):