[wxPython-users] wx.animate.Animation Question
Robin Dunn
robin at alldunn.com
Fri Mar 9 11:29:35 PST 2007
Grzegorz Adam Hankiewicz wrote:
> Hannes Mueller wrote:
>> ani = wx.animate.Animation("filename.gif")
>>
>> I want to distribute this application, and I want to reduce the amount
>> of files i have to distribute and that can lead to "user induced errors".
>> Is there any way I can store the gif information in the code and make
>> the Animation constructor read it from there?
>
> wxPython provides wx.tools.img2py, which can be called to convert .png
> files into importable python source code. I guess it works with .gif
> too, or there's some other similar script for gifs which you could use.
>
img2py will convert the gif to a png first before embedding it, so it
will unfortunately loose the additional animation frames and timing info.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list