How to display animated GIF??

Robin Dunn:

  I have downloaded the lastest version of these files. I know litter about wxWidgets and SWIG, and don't know how to deal with those terrible macros in the files. I'll try to write a pure python widgets instead of wrapping it.

======= 2005-04-01 06:51:22 Robin Dunn wrote: =======

Bruce Who wrote:

Robin Dunn:

  Image_GetImageCount doesn't work! test.gif is a animated gif file, but wx.Image_GetImageCount() always return 1. Am I wrong?

count = wx.Image_GetImageCount("test.gif",wx.BITMAP_TYPE_ANY)

    I tried this too, without success:

count = wx.Image_GetImageCount("test.gif",wx.BITMAP_TYPE_GIF)

    the test.gif file is attached.

Sorry, I guess the wx GIF image handler doesn't implement that feature.

The sources for the animation contrib I mentioned before are here:

http://cvs.wxwidgets.org/viewcvs.cgi/wxWidgets/contrib/include/wx/animate/animate.h
http://cvs.wxwidgets.org/viewcvs.cgi/wxWidgets/contrib/src/animate/animate.cpp

There was a patch applied to it a couple months ago so perhaps it is not
as rusty as I thought. If you (or anybody) wanted to try and port this
to Python that would be great, otherwise I can look into wrapping it
when I get some time.

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

.

= = = = = = = = = = = = = = = = = = = =
      
Bruce Who
HuXuZhao@hotmail.com
2005-04-01