472,354 Members | 2,191 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,354 software developers and data experts.

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 4366
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Chris Stiles | last post by:
Hi -- Some time ago I attended a course (run by Island Training I think) where the instructor used some 'written in python' to project a slideshow/presentation over a network onto multiple...
0
by: titouille | last post by:
Hi everybody ! first, sorry for my poor english, I'm french mothertongue ;) technologies : -------------- Python 2.3 Twisted Matrix 1.2.0 wxPython 2.5.1
1
by: amit | last post by:
Hello, I am currently studying how to embedd python. I am developing a graphical C++ application. My goal is to embedd python script that will control some kind of animation. I have some...
11
by: rodmc | last post by:
Can anyone provide me with advice on how easy (or otherwise) it is to drive a Flash animation (stored locally but displaed in a browser) with a Python application. Basically information is getting...
2
by: rdemyan via AccessMonster.com | last post by:
My application has a lot of complicated SQL statements, calculations, processing that takes time. I've created a custom form to act like a messagebox. It has 10 small rectangles on it that change...
14
by: Hendrik van Rooyen | last post by:
Hi, I get the following: hvr@LINUXBOXMicrocorp:~/Controller/libpython display.py UpdateStringProc should not be invoked for type font Aborted and I am back at the bash prompt - this is...
2
by: http://members.lycos.co.uk/dariusjack/ | last post by:
I need to draw a shaded rectangle and have flashing (gif animated) points on it so not to refresh all objects a rectangle, but points, changing their colors, attributes. Please refer me to some...
4
by: Sin Jeong-hun | last post by:
Most applications, including Windows Explorer, show some sort of 'wait' dialog with animation when a lengthy operation is going on. For example, When the Windows Explorer is searching for...
0
by: Stef Mientki | last post by:
Virgil Stokes wrote: Maybe this might be of your interest: http://oase.uci.kun.nl/~mientki/data_www/pylab_works/pw_animations_screenshots.html Although it's in alfa stage, I'm using parts of...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made but the http to https rule only works for...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. header("Location:".$urlback); Is this the right layout the...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.