I can see ‘&’ in a wx.Frame Title or wx.TextCtrl Value,
but in a wx.Button Label or wx.CheckBox Label or wx.StaticText Label I can’t see anything.
On Window 10, 11
Python: 3.10 3.11 3.12
wx: 4.2.1a1
Do you have an idea for solving this problem?
Here’s a little demonstration code
import wx
class MainFrame(wx.Frame):
def __init__(self, *args, **kwds):
wx.Frame.__init__(self, *args, **kwds)
self.panel = wx.Panel(self)
wx.TextCtrl(self.panel, value='Value -&-\x26- $£§µùçàèé@',
pos=wx.Point(10, 10), size=wx.Size(220, 25))
wx.StaticText(self.panel, label='Label -&-\x26- $£§µùçàèé@',
pos=wx.Point(10, 40), size=wx.Size(220, 25))
wx.CheckBox(self.panel, label='Label -&-\x26- $£§µùçàèé@',
pos=wx.Point(10, 70), size=wx.Size(220, 25))
wx.Button(self.panel, label= 'Label -&-\x26- ',
pos=wx.Point(80, 100), size=wx.Size(80, 25), style=0)
app = wx.App()
main_frame = MainFrame(None, wx.ID_ANY, "Title -&-\x26-", size=(250, 200))
app.SetTopWindow(main_frame)
main_frame.Show()
app.MainLoop()