Reputation: 7260
I'm trying to get a label on a button to be on two or more lines. I want to update this at runtime. I did like this:
self.btnGroupOne.SetLabel(u"test\ntest")
Yet, when I run the app, i just get a button with "testtest" on a single line as the label.
Am I forgetting a property that allows multiline labels or something?
BTW, when I do this:
self.btnNieuwTicket = wx.Button( self, wx.ID_ANY, u"Nieuw\nTicket", wx.DefaultPosition, wx.Size( 80,80 ), 0 )
the multiline does work...
Upvotes: 2
Views: 1943
Reputation: 5161
It appears to be a confirmed bug in wxWidgets: http://trac.wxwidgets.org/ticket/12491
If you give the button a multi-line label at creation, SetLabel
will then allow multiple lines.
Upvotes: 3