Bitmap Button Labels

Setup: Mac OSX 10.6, Python 2.7.2, wxPython 2.9.2.4 osx-cocoa (classic)

Hi,

When I specify the wx.NO_BORDER style, the label doesn't show up on the button.
When I use wx.lib.buttons.GenBitmapTextButton, the label shows up, but only to the right of the button, not on top of it.

How can I use the NO_BORDER style, but still have the label on the button?

Thanks,
Daniel

It works for me in the demo. Here is what I did: go to the Button sample and click the Demo Code tab. Scroll down to the last button created in TestPanel.__init__, add "style=wx.NO_BORDER". Click Save Changes and then go back to the Demo tab to view the results.

···

On 9/13/11 7:29 AM, Daniel Fontaine wrote:

Setup: Mac OSX 10.6, Python 2.7.2, wxPython 2.9.2.4 osx-cocoa (classic)

Hi,

When I specify the wx.NO_BORDER style, the label doesn't show up on the button.
When I use wx.lib.buttons.GenBitmapTextButton, the label shows up, but only to the right of the button, not on top of it.

How can I use the NO_BORDER style, but still have the label on the button?

--
Robin Dunn
Software Craftsman