Ticket #12491 (closed defect: fixed)
Multi-line wxButton labels
| Reported by: | JacekK | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | wxOSX (any toolkit) | Version: | 2.9-svn |
| Keywords: | Cc: | csomor | |
| Blocked By: | Patch: | no | |
| Blocking: |
Description
If label text contains escape sequences, wxButton label setting behaviour is platform dependent. Here are two methods for setting button label text:
1)
btn = wx.Button(parent, -1, "This is\nlabel")
2)
btn = wx.Button(parent, -1)
btn.SetLabel("This is\nlabel")
On GTK/Linux both (1) and (2) method works fine.
On Windows platform, method (1) works, but (2) doesn't.
On OS X, method (1) doesn't work but (2) works.
Example images for Windows platform

and OS X

Is this by design?
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

