[wxpython-users] buttonpanel: how to set hover images on buttons
Andrew Carswell
andrew at ese3D.co.nz
Tue Sep 30 18:52:14 PDT 2008
Hi,
I'm using wx.lib.buttonpanel - it's great! However I am having difficulty
trying to set and unset 'hover' images on buttons.
How should I code the following:
def someMethod(self, event):
if self.btn.GetStatus() == "Hover":
self.btn.SetBitmap(wx.Bitmap("hoverImage.png", wx.BITMAP_TYPE_PNG))
I want to trigger the 'hover' image when the mouse is over the button and
then reset it upon mouse exit.
What events should I use to set and unset the hover image?
If only there were a SetBitmapHover method as there is with bitmap buttons.
Thx in advance,
Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20081001/da7f3c85/attachment.htm
More information about the wxpython-users
mailing list