[wxPython-users] Ampersand in static text control
Brian Wolf
brian.wolf at activustech.com
Thu Jul 19 17:51:59 PDT 2007
Found the answer: two ampersands.
This code:
mylabel = wx.StaticText(self, label="Smith && Wesson")
produces this display:
"Smith & Wesson"
Brian Wolf wrote:
> Does anyone know how to include an ampersand (&) in the middle of a
> static text control?
>
> For example:
>
> mylabel = wx.StaticText(self, label="Smith & Wesson")
>
> The ampersand is converted to an underscore: "Smith _Wesson"
>
>
> Running on Win2k.
> Thanks.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
>
More information about the wxpython-users
mailing list