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. 2 1813
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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",...
|
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...
|
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...
|
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. ...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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()
...
|
by: Rina0 |
last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
|
by: erikbower65 |
last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA:
1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
|
by: kcodez |
last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
|
by: Taofi |
last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same
This are my field names
ID, Budgeted, Actual, Status and Differences
...
|
by: Rina0 |
last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
|
by: DJRhino |
last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer)
If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _
310030356 Or 310030359 Or 310030362 Or...
|
by: lllomh |
last post by:
How does React native implement an English player?
|
by: Mushico |
last post by:
How to calculate date of retirement from date of birth
|
by: DJRhino |
last post by:
Was curious if anyone else was having this same issue or not....
I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
| |