Hi,
I need the button label contains with “&”, but it turns out be “_”. How can I add “OK & Continue” to a button label?
Thank you.
Regards,
Hi,
I need the button label contains with “&”, but it turns out be “_”. How can I add “OK & Continue” to a button label?
Thank you.
Regards,
Hi,
I guess, there is some kind of escaping needed; (there might be some
clash due to the key accelerators)
Doubling the ampersand character produces visually the needed button label:
bt.SetLabel(u" OK && Continue")
hth,
vbr
2014-04-11 12:52 GMT+02:00 nobody h <jupiter.hce@gmail.com>:
Hi,
I need the button label contains with "&", but it turns out be "_". How can
I add "OK & Continue" to a button label?Thank you.
Regards,
Thanks vbr, that did the trick.
Cheers.
On Friday, April 11, 2014 9:08:28 PM UTC+10, vbr wrote:
2014-04-11 12:52 GMT+02:00 nobody h jupit...@gmail.com:
Hi,
I need the button label contains with “&”, but it turns out be “_”. How can
I add “OK & Continue” to a button label?
Thank you.
Regards,
Hi,
I guess, there is some kind of escaping needed; (there might be some
clash due to the key accelerators)
Doubling the ampersand character produces visually the needed button label:
bt.SetLabel(u" OK && Continue")
hth,
vbr
Try: “OK && Continue”
On 11/04/14 11:52, nobody h wrote:
Hi,
I need the button label contains with "&", but it turns out
be “_”. How can I add “OK & Continue” to a button label?
Thank you. Regards,
–
You received this message because you are subscribed to the Google
Groups “wxPython-users” group.
To unsubscribe from this group and stop receiving emails from it,
send an email to wxpython-users+unsubscribe@googlegroups.com.
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
Out of curiosity, is there some special meaning to the & character? Why
does it need to be escaped?
-Haris
On Fri, 11 Apr 2014, Steve Barnes wrote:
On 11/04/14 11:52, nobody h wrote:
> Hi,
>
> I need the button label contains with "&", but it turns out be "_". How can
> I add "OK & Continue" to a button label?
>
> Thank you.
>
> Regards,
> --
> You received this message because you are subscribed to the Google Groups
> "wxPython-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to wxpython-users+unsubscribe@googlegroups.com
> <mailto:wxpython-users+unsubscribe@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.Try: "OK && Continue"
Hi,
I need the button label contains with "&", but it turns out be "_". How can
I add "OK & Continue" to a button label?Thank you.
Regards,
--
You received this message because you are subscribed to the Google Groups
"wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to wxpython-users+unsubscribe@googlegroups.com
<mailto:wxpython-users+unsubscribe@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.Try: "OK && Continue"
Out of curiosity, is there some special meaning to the & character? Why
does it need to be escaped?
self.fileMenu.Append(ID_NEW_FILE, "&New file", "Creates a XYZ document")
Yes it makes it an 'accelerator' (not sure of the term), i.e. after that you could do "alt+n" to access the menu option "New File".
Werner
On 4/11/2014 19:13, Haris Andrianakis wrote:
On Fri, 11 Apr 2014, Steve Barnes wrote:
On 11/04/14 11:52, nobody h wrote:
-Haris