[wxPython-users] Animated Gif as Button
Robin Dunn
robin at alldunn.com
Wed Aug 2 08:13:10 PDT 2006
Ben Harling wrote:
> Aha, yes. I can display the animated gif, but I need to register when
> the user clicks it, I cant seem to find any method to do this. You
> cannot use an wxGifAnimationCtrl with a bitmap button. I have looked
> into using Rect.inside(mouseClickLocation) but it seems there must be
> a better way to do it. I have also tried placing an emtpy bitmap
> button below the animated gif, but the bitmapButton wont receive
> clicks... :(
>
Bind the mouse events to the GifAnimationCtrl and implement your own
button-like behavior.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list