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 2 4461
On Sep 15, 11:29*pm, Virgil Stokes <v...@it.uu.sew rote:
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
Sean DiZazzo wrote:
On Sep 15, 11:29 pm, Virgil Stokes <v...@it.uu.sew rote:
>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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 laptops simultaneously -
so each attendee could follow the course. As I recall it included basic
animation as well as the standard text bullet points.
I've looked at the usual sources (freshmeat et al) and can't find anything
like this, does this...
|
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
|
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 questions about python embedding:
1) Is there a good text book or other resource on embedding/extending?
(I find it hard to learn only by the tutorial and C/Python API from the
python.org site)
|
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 streamed to a
Python client and this is expected to update the Flash animation.
It sounds odd, but it has to be done.
Thanks,
Rod
|
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 color sequentially
to let the user know that processing is occurring. This 'animation' occurs
via the form timer event.
However, I'm having trouble getting the animation to occur for all types of
processing events. It appears that I have to...
| |
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 most frustrating, as there is no
friendly traceback to help me guess where its coming from.
|
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 basic Python code for animation like that .
Darius
|
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 something, it
shows a small dialog with a moving flashlight. I examined the
explorer.exe and found that that was an avi file.
Now that, I would like to do similar thing in my C# application. But
what is the most efficient way to do so?
1)Manually...
|
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 it as a regular tool
already.
I'm looking for practical application so maybe we could work something out.
cheers,
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |