I'm writing my very first GUI, and so far it has been pretty enjoyable
to learn wxPython. However, I'm experiencing a problem in my program.
Here is how the GUI main window appear in my linux box:
Mac has some odd restrictions on sizes for the native bitmap buttons, so I expect that using a large wide image like that is causing it to go a little crazy. Instead you can use the GenBitmapButton in the wx.lib.buttons module, and fiddle with its attributes like bezel width, using the focus indicator, etc. to make it look like you want. Or if you would rather have it look more like just a bitmap and less like a button then using wx.lib.statbmp and binding a handler for the mouse events should do the trick for you too.
···
On 8/10/11 9:11 AM, Filipe Pires Alvarenga Fernandes wrote:
Hi,
I'm writing my very first GUI, and so far it has been pretty enjoyable
to learn wxPython. However, I'm experiencing a problem in my program.
Here is how the GUI main window appear in my linux box:
I'm writing my very first GUI, and so far it has been pretty enjoyable
to learn wxPython. However, I'm experiencing a problem in my program.
Here is how the GUI main window appear in my linux box:
Mac has some odd restrictions on sizes for the native bitmap buttons, so I
expect that using a large wide image like that is causing it to go a little
crazy. Instead you can use the GenBitmapButton in the wx.lib.buttons
module, and fiddle with its attributes like bezel width, using the focus
indicator, etc. to make it look like you want. Or if you would rather have
it look more like just a bitmap and less like a button then using
wx.lib.statbmp and binding a handler for the mouse events should do the
trick for you too.
Thanks a lot, I just implemented the second suggestion and it looks
better even on my Linux machine. I did not wanted a button for that,
but buttons tutorials are easier to find than static bitmap events
Thanks again, Filipe.
···
On Wed, Aug 10, 2011 at 12:36, Robin Dunn <robin@alldunn.com> wrote:
On 8/10/11 9:11 AM, Filipe Pires Alvarenga Fernandes wrote: