From: Antoine P. <sol...@pi...> - 2005-05-25 15:30:00
|
Le lundi 23 mai 2005 =E0 13:34 +0200, Alberto Griggio a =E9crit : > > With the CVS version, when one sets an empty label in a StaticText > > (useful if it has to be set dynamically by the application), wxGlade > > from time to time fills the label with the value of the StaticText ID. >=20 > Thanks. I'll fix it ASAP (patches always welcome ;-) I think the following patch works: Index: widgets/static_text/static_text.py =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvsroot/wxglade/wxGlade/widgets/static_text/static_text.py,v retrieving revision 1.12 diff -u -r1.12 static_text.py --- widgets/static_text/static_text.py 6 May 2005 21:48:17 -0000 1.1= 2 +++ widgets/static_text/static_text.py 25 May 2005 15:27:53 -0000 @@ -123,7 +123,7 @@ if sizer is None or sizeritem is None: raise XmlParsingError, "sizer or sizeritem object cannot be None" static_text =3D EditStaticText(label, parent, wxNewId(), - misc._encode(label), sizer, pos, + "", sizer, pos, common.property_panel) sizer.set_item(static_text.pos, option=3Dsizeritem.option, flag=3Dsizeritem.flag, border=3Dsizeritem.border) |