473,508 Members | 2,312 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4448
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
3762
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
1323
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
1898
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
3119
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
5759
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
2648
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
2450
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
13901
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
201
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...
0
7135
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7410
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7067
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7505
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5650
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5060
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3215
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3201
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
774
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.