wx.animate.Animation Question

Hannes MŸueller hannes.mueller at gmail.com
Tue Mar 13 06:48:02 PDT 2007


Hannes MŸueller wrote:
> 
> 
> Okay, I found that it accepts "wx.InputStream" or a File-Like object.
> 
> I try the following:
> 
> f = open("path_to/file.gif")
> ani = wx.animate.Animation()
> ani.Load(f)
> 
> --> python crashes
> 
> it also crashes on
> instr = wx.InputStream(f)
> 
> What am I doing wrong?
> 
> Hannes

Well, that was stupid.
It works (of course) when I use:
f = open("path_to/file.gif", "rb")

Hannes





More information about the wxpython-users mailing list