I don't know about transparent buttons, but perhaps you could capture the LEFT_UP events, and compare the coordinates of the click to your own list of rectangles of interest. Then you can invoke the handler for the rectangle. It wouldn't be too difficult, and gets you out of trying to trick wxPython into doing what you want with transparent buttons.
The code you found is C++, BTW.
--Ned.
Alec Bennett wrote:
···
I have a complicated background image, and instead of breaking out the button graphics into separate buttons, I was thinking it'd be much easier to just place transparent buttons where I need to capture clicks.
Does anyone have any pointers on making transparent buttons? I found this code but it doesn't even look like Python to me:
http://lists.wxwidgets.org/pipermail/wxpython-users/2004-October/033314.html
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users