469,927 Members | 1,640 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,927 developers. It's quick & easy.

Python GUI for animation

I have been using Python for a short time and I find it a very flexible
language, and easy to learn and use. I have also worked some with PyGame
and used it to create a simple animation that is controlled by the mouse
and keyboard. The animation is designed to move filled circles around on
the screen and is driven by a data file that defines (indirectly), the
next relative position of each circle. And for my purposes (queueing
demo in the classroom) this works quite well. However, I would now like
to create a Python GUI that would allow a user to control the animation,
via buttons, sliders, etc.

I am certainly not a Python expert and have never worked with the
creation of a GUI. I would appreciate greatly any advice from those who
have worked with Python GUIs as to the best way to proceed.
Thank you in advance,
V. Stokes
Sep 16 '08 #1
2 4254
On Sep 15, 11:29*pm, Virgil Stokes <v...@it.uu.sewrote:
I have been using Python for a short time and I find it a very flexible
language, and easy to learn and use. I have also worked some with PyGame
and used it to create a simple animation that is controlled by the mouse
and keyboard. The animation is designed to move filled circles around on
the screen and is driven by a data file that defines (indirectly), the
next relative position of each circle. And for my purposes (queueing
demo in the classroom) this works quite well. However, I would now like
to create a Python GUI that would allow a user to control the animation,
via buttons, sliders, etc.

I am certainly not a Python expert and have never worked with the
creation of a GUI. I would appreciate greatly any advice from those who
have worked with Python GUIs as to the best way to proceed.

Thank you in advance,
V. Stokes
I think Tkinter would be a good starting point. It is pretty simple
to use and gives you lots of freedom to create whatever you want. It
doesn't look as nice as some of the other GUI toolkits, but it is
generally easier to work with.

http://wiki.python.org/moin/TkInter

Then again, you mention sliders, knobs, etc. I don't think Tkinter
has alot of widgets built in. The other choice would be wxPython.
It's got lots of built in widgets, and it looks pretty good. If you
go this route, run the demo application to see what you have to work
with.

http://wxpython.org/

Good luck.

~Sean
Sep 16 '08 #2
r0g
Sean DiZazzo wrote:
On Sep 15, 11:29 pm, Virgil Stokes <v...@it.uu.sewrote:
>I have been using Python for a short time and I find it a very flexible
language, and easy to learn and use. I have also worked some with PyGame
<snip>
Then again, you mention sliders, knobs, etc. I don't think Tkinter
has alot of widgets built in. The other choice would be wxPython.
It's got lots of built in widgets, and it looks pretty good. If you
go this route, run the demo application to see what you have to work
with.

http://wxpython.org/

Good luck.

~Sean
Yes, I'd say wxPython is the way to go, mainly because of the numerous
and excellent examples and example program.

Also, gui stuff can be lengthy and verbose to code by hand and if you're
using wxPython you can also use wxGlade, a python version of the popular
Glade gui builder.

Good luck :]
Roger Heathcote.

http://www.technicalbloke.com
http://movingtoubuntu.technicalbloke.co.uk
Sep 17 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Chris Stiles | last post: by
reply views Thread by titouille | last post: by
1 post views Thread by amit | last post: by
11 posts views Thread by rodmc | last post: by
2 posts views Thread by rdemyan via AccessMonster.com | last post: by
14 posts views Thread by Hendrik van Rooyen | last post: by
2 posts views Thread by http://members.lycos.co.uk/dariusjack/ | last post: by
4 posts views Thread by Sin Jeong-hun | last post: by
reply views Thread by Stef Mientki | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.