473,406 Members | 2,439 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Pygame w/ GUI

I know this isn't strictly a Python question, but I'm betting some
here might be able to give me a hint.

I have a few graphical programs doing some 2D data visualization using
simple Pygame code for pseudo real-time animation. It's running
under windows XP right now, but eventually it'll need to be cross-
platform. As it is right now, it probably is, I just haven't tried it
anywhere but XP.

Now I want to wrap some simple GUI functions around it. I'm looking
for some buttons, a text field or two and file system selection of
data files. I figure many have done this and there is a better
solution than to use Pygame constructs to implement such things.

My question: I'm not seeing much support in Pygame for that stuff.
It seems I should build buttons and file browsing in some other
toolkit. Is that true? Or am I just to early on in the Pygame docs
to see solutions?

If I should use something else, am I going to be able to use Tkinter
or WxPython in conjunction with my Pygame code? Or is there something
else I should be looking at?

Oh, and I'm running Python 2.5.1

Thanks for any thoughts.
Jan 10 '08 #1
2 1847
PatrickMinnesota wrote:
I know this isn't strictly a Python question, but I'm betting some
here might be able to give me a hint.

I have a few graphical programs doing some 2D data visualization using
simple Pygame code for pseudo real-time animation. It's running
under windows XP right now, but eventually it'll need to be cross-
platform. As it is right now, it probably is, I just haven't tried it
anywhere but XP.

Now I want to wrap some simple GUI functions around it. I'm looking
for some buttons, a text field or two and file system selection of
data files. I figure many have done this and there is a better
solution than to use Pygame constructs to implement such things.

My question: I'm not seeing much support in Pygame for that stuff.
It seems I should build buttons and file browsing in some other
toolkit. Is that true? Or am I just to early on in the Pygame docs
to see solutions?

If I should use something else, am I going to be able to use Tkinter
or WxPython in conjunction with my Pygame code? Or is there something
else I should be looking at?

Oh, and I'm running Python 2.5.1

Thanks for any thoughts.
I do not have experience using pygame, but you can look at:

http://pyui.sourceforge.net/

Creates an user interface with pygame as a possible back end.

Hope this helps.

Adonis
Jan 10 '08 #2
On Wed, 09 Jan 2008 18:10:03 -0800, PatrickMinnesota wrote:
I know this isn't strictly a Python question, but I'm betting some here
might be able to give me a hint.

I have a few graphical programs doing some 2D data visualization using
simple Pygame code for pseudo real-time animation. It's running under
windows XP right now, but eventually it'll need to be cross- platform.
As it is right now, it probably is, I just haven't tried it anywhere but
XP.

Now I want to wrap some simple GUI functions around it. I'm looking for
some buttons, a text field or two and file system selection of data
files. I figure many have done this and there is a better solution than
to use Pygame constructs to implement such things.

My question: I'm not seeing much support in Pygame for that stuff. It
seems I should build buttons and file browsing in some other toolkit.
Is that true? Or am I just to early on in the Pygame docs to see
solutions?
I've used pgu once and it worked ok. pgu is a PyGame utility kit which
includes a GUI interface; pretty good tutorial on the site, too.

If I should use something else, am I going to be able to use Tkinter or
WxPython in conjunction with my Pygame code? Or is there something else
I should be looking at?
Not recommended, though some have done it. SDL (which PyGame is based
upon) likes to control the event loop, same as most GUIs do. Plus it's
not straightforward to integrate the SDL window into the widget systems.
Carl Banks
Jan 10 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Marian Aldenhövel | last post by:
Hi, I am trying to make pygame play music on windows. This simple program: import pygame,time pygame.init() print "Mixer settings", pygame.mixer.get_init() print "Mixer channels",...
3
by: Tim Knauf | last post by:
Hi everyone, I'm glad to have found this list. I've written a small script for my own use which, amongst other things, captures mouse click information from a window containing an image. I used...
2
by: Brent W. Hughes | last post by:
I'm just starting to learn pygame. I write what I think is just about the simplest program that should display a window and then quit. #----------------------------------------------- import sys...
1
by: kjm | last post by:
Hi everyone, I have recently acquired a Logitech Rumble pad to use as an input device. I have been having trouble getting the event que to respond that a button or hat arrow has been pressed. ...
0
by: Lunpa | last post by:
My project: I'm working on a game, where in the ui, it takes the pygame window, and shoves it into a gtk2 socket widget. (gtk2 widgets are generated with glade, with the exception of the socket...
1
by: liuliuliu | last post by:
hi -- sorry if this is trivial -- but how do you make a screenshot of a pygame display? i have a surface which is basically the entire visible screen -- how do you write this surface as an image...
11
by: dynamo | last post by:
Hi guys i have come again with more problems.This time it has to do with pygame.The following code does not give any error messages but it does not do what it is supposed to do either.the code is a...
3
by: globalrev | last post by:
im doing this : http://www.learningpython.com/2006/03/12/creating-a-game-in-python-using-pygame-part-one/ and when closing the program the window stays up and doesnt respond. i tried adding...
11
by: globalrev | last post by:
http://www.pygame.org/docs/ref/mixer.html import pygame #pygame.mixer.init(frequency=22050, size=-16, channels=2, buffer=3072) //it complained abiout words= so i guess its only the nbrs...
5
by: defn noob | last post by:
Im using PyGame to draw images of graphs and trees. Howver right now i am looping using: while 1: for event in pygame.event.get(): if event.type == pygame.QUIT: sys.exit() ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
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
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
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,...
0
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...

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.