From 96bfe7feee455ee1d97a970c403c21d176634310 Mon Sep 17 00:00:00 2001 From: Roman Rolinsky Date: Mon, 5 Jun 2006 17:48:00 +0000 Subject: [PATCH] fix for empty value git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39570 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/wx/tools/XRCed/params.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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): -- 2.45.2