Link to home
Start Free TrialLog in
Avatar of James Hancock
James HancockFlag for United States of America

asked on

Python - Help moving animated gifs on a frame

Hi
I'm getting used to PyCharm. I like it. Thanks experts who suggested it.
I'd like to know if anyone knows how to capture an animated gif from a URL and move it around on a frame? ( click-select)-( press 'm' and click to endpoint) The Python Threading and Window events, listening and handling don't seem as straightforward as in Java.
For example, the Mutalisk at
http://jamescomp.com/pics/mutalisk.gif

Thanks
Avatar of gelonida
gelonida
Flag of France image

Could you explain in more detail what you want to do?

Do you want to create graphical application which shows an animated image?
Or do you want a web page, where you can start / stop animating a gif?

Shall this work under Windows / linux ?


If this should a a native application, then you should probably first choose your graphical framework.
PyGtk
PySIde / PyQT
PyTK
PyGame

If you just want to extract frames from an animated gif you can look at PIL (or Pillow)  which allows to read GIF files and extract frames. However PIL does not allow to write animated GIFs
Avatar of James Hancock

ASKER

Thanks
I'm curious as to the possibility of using a frame for an RTS like movement system of jpeg animated GIF's. or regular GIF's - Not necessarily over a scenery, a white window.
In fact, for any type of game, not an RTS, maybe Pacman or Mario Bros style. Is this possible in Python?

Isn't Python platform independent?
Please un-neglect this question
ASKER CERTIFIED SOLUTION
Avatar of gelonida
gelonida
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks
These suggestions all sound promising!
I'm still trying to tackle Pygame installation on Macbook first

I have the file

pygame-1.9.1release-python.org-32bit-py2.7-macosx10.3-2

What will happen when I open it?
Will it automatically do a correct installation?
Are people using python coded GUI's? or are they just using Java coded Frames converted with Jython?
Thanks
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial