I have been struggling with cross-platform issues between Linux and Windows regarding specialized buttons. For some reason, the Linux version of Button and GenButton on Linux show 3D button borders upon hover or click, but not on Windows. I just noticed that there is “SetBevelSize” in the GenButton class. Will that help?
Since buttons didn’t work like I wanted, I tried using a StaticBitmap to do the work. Again, it worked on Windows, but in Linux, the events never fire for wx.EVT_ENTER_WINDOW. So I still don’t have my mouseover effects showing up. I created a post at StackOverflow for this, with very easily verified code if anyone wants to give it a try. I am running on Linux Mint, latest release I think. http://stackoverflow.com/questions/14929733/wxpython-mouse-entering-leaving-event-methods-dont-work-on-linux
How else can you detect a mouseover a static bitmap in Linux? If this is a bug it seems like it would have been fixed eons ago? How else can I get this effect? (I want to provide my own images for mouseover, click, enabled, disabled.)
I have been struggling with cross-platform issues between Linux and
Windows regarding specialized buttons. For some reason, the Linux
version of Button and GenButton on Linux show 3D button borders upon
hover or click, but not on Windows. I just noticed that there is
"SetBevelSize" in the GenButton class. Will that help?
Did you try it?
Did you check the GenericButtons sample in the demo? It shows some different styles that can be used with those classes. By default they should have some simple 3D borders.
How else can you detect a mouseover a static bitmap in Linux? If this is
a bug it seems like it would have been fixed eons ago? How else can I
get this effect? (I want to provide my own images for mouseover, click,
enabled, disabled.)
In GTK some of the static widgets are not true widgets, but are rather just drawn directly on the parent. Because of this they may not be able to support some things that are handled generically in the base wx.Window class. If you decide to stay with static bitmap then you can use the class in wx.lib.statbmp to have one that is a real widget.