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
LVL 1
beavoidAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gelonidaCommented:
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
0
beavoidAuthor Commented:
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?
0
beavoidAuthor Commented:
Please un-neglect this question
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

gelonidaCommented:
Yes, python is platform independent, and most graphical frameworks (tkinter, pyqt, pygame, . . . )
but there is also one library, which is pywin, which gives you kind of direct access to many windows specific functions.

It seems, to me that it would be best to ask a question what framework would be best for writing the kind of games, that you want to write. and them ask how to solve the animated GIF issue from within this framework.

I personally never tried to write a graphical interactive game with python so don't know which framework would be nicest.

You need to make two choices:
the language and the framework
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gelonidaCommented:
I also found pyganim ( http://inventwithpython.com/pyganim/index.html#download )
though I did not try it out.

pyganim is a class for simple creation of animated objects in pygame.

It does however NOT display animated gifs.
What you could do however is:
use PIL (or pillow) to load an animated gif into memory and then save each individual frame from the gif file into a
separate file.
Then you can use pyganim to display these frames in an animation
0
beavoidAuthor Commented:
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?
0
beavoidAuthor Commented:
Are people using python coded GUI's? or are they just using Java coded Frames converted with Jython?
Thanks
0
gelonidaCommented:
I personally use PySide (a Qt binding https://en.wikipedia.org/wiki/PySide) for GUIs or alternatively just a web server such, that a web browser will become the 'GUI' for my application.

Most python graphical frameworks are 'just' bindings to existing framework libraries.
There's also bindings to
GTK ( http://www.pygtk.org/ )
Wx ( http://wxpython.org/download.php )
Tk ( https://wiki.python.org/moin/TkInter )
Pygame is often used for development of simple games (and uses SDL for rendering)

The word 'just' is not intended to be negative. I think it's great if the graphical framework is not language specific. You choose the one you like and you can continue using it if you change your programming language.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Python

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.