wx.animate.Animation Question

Hannes MŸueller hannes.mueller at gmail.com
Fri Mar 9 04:26:22 PST 2007


Grzegorz Adam Hankiewicz wrote:
> Hannes MŸueller 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.
> 

Thanks, I already tried somethin in that direction, the problem is 
however that the constructor for the Animation class only accepts 
strings or unicode strings as parameter. I can't even give it an already 
open file pointer.

Anyone knows how to work around this?

Hannes





More information about the wxpython-users mailing list