954,549 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

animated image

Is possible to display animated image?for example this?
thanks:D

Blujacker
Junior Poster in Training
56 posts since Mar 2006
Reputation Points: 17
Solved Threads: 1
 

Take a look at:
http://www.daniweb.com/code/snippet435.html

This example uses wxPython. Another option is mentioned in the DaniWeb Python Tutorials under Multimedia.

vegaseat
DaniWeb's Hypocrite
Moderator
5,989 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,417
 

Take a look at: http://www.daniweb.com/code/snippet435.html

This example uses wxPython. Another option is mentioned in the DaniWeb Python Tutorials under Multimedia.

And is this possible with Tkinter???

Blujacker
Junior Poster in Training
56 posts since Mar 2006
Reputation Points: 17
Solved Threads: 1
 
And is this possible with Tkinter???


I could never get animated GIF to work with Tkinter, or PIL and Tkinter!
However, you could include the webbrowser code.

vegaseat
DaniWeb's Hypocrite
Moderator
5,989 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,417
 

So you think this is impossible?:rolleyes:

Blujacker
Junior Poster in Training
56 posts since Mar 2006
Reputation Points: 17
Solved Threads: 1
 

Well, the Tkinter Canvas create_image() and PIL's ImageTk simply show an unanimated GIF. I have no experience with any other image libraries that might work with Tkinter. You might have to google for a combination of Tkinter and animated GIF.

If your program is not too complex, rewrite it for wxPython. The wxPython GUI is much more advanced than Tkinter!

vegaseat
DaniWeb's Hypocrite
Moderator
5,989 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,417
 

Well, the Tkinter Canvas create_image() and PIL's ImageTk simply show an unanimated GIF. I have no experience with any other image libraries that might work with Tkinter. You might have to google for a combination of Tkinter and animated GIF.

If your program is not too complex, rewrite it for wxPython. The wxPython GUI is much more advanced than Tkinter!


yes sure i can, there is not a lot of widgets. But i dontk know wx method like Canvas.find_overlapping,lift,delete and so...I havent much experience with wx:(( there is a lot of images( i am doing a game:))

Blujacker
Junior Poster in Training
56 posts since Mar 2006
Reputation Points: 17
Solved Threads: 1
 

Since an animated GIF is basically a series of individual GIFs, you can mimic an animated GIF on Tkinter. Take a look at:
http://www.daniweb.com/techtalkforums/post225611-64.html

vegaseat
DaniWeb's Hypocrite
Moderator
5,989 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,417
 

Hey vega, that works pretty smooth!

bumsfeld
Nearly a Posting Virtuoso
1,445 posts since Jul 2005
Reputation Points: 404
Solved Threads: 184
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You