pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing

PyGU (PyGame Utilities)

pymike (pymike)

Tags:

Description

PyGU is a library made with the intent of helping people make games with python and pygame easier. Includes a sprite module, a GUI module, and about six other modules. Examples won't work until you install the package. Comments, criticism, and helpful suggestions are appreciated.

Links

Home Page: http://www.pygame.org/

Comments

If you wish to leave a comment, please sign in first.

January 19, 2008 9:49am - pymike - nickname: (pymike)
Yep. Sorry, that's a problem I've had. I'm starting a new library with my new team, which will have lots of the same scripts (but cleaned up and bug-fixed) in it. Sorry about the bugs. If you send me your code at pymike93@gmail.com I might be able to fix it up :-)
January 16, 2008 9:30pm - Bernard J Quinn III - nickname: (bjquinniii)
That part I figured out. I can get the buttons to fire (activate? trigger?) as long as they are painted onto the screen. What I was unable to do was to get them to behave when I had painted them on another surface (had a large sprite on which I intended to put all of my controls/buttons. It seems like the curser collision doesn't get detected when I try to do that.
January 15, 2008 8:55am - pymike - nickname: (pymike)
Sorry...get them to fire? You mean add commands to the buttons? if so, it would work like this:

def fire():
print "bang!"

Button(command=fire)

of course you can have your other args in the button but that's just a simple example.

If you want more than one arg in fire() you can use lambda. for example:

def fire(position, speed):
print "Bang!", position, speed

Button(command = lambda: fire(position=(0, 0), speed=5))

Hope this helps you!
January 5, 2008 11:29pm - Bernard J Quinn III - nickname: (bjquinniii)
I'm new to python (and OOP) so bear with me... how exactly do the buttons work? I have a screen that I have divided into separate panes using large sprites, and want to include some of your PyGU buttons as a control panel on one of them. I have been able to get the buttons to render onto the surface of the sprite, and resize appropriately when the window is resized, but I haven't been able to get them to fire...
December 18, 2007 2:19pm - pymike - nickname: (pymike)
Thanks for the feedback. Hmm...In my windows version the "Lib" drectory is uppercase. I'll fix this in the next release.
December 16, 2007 7:50am - Luca Fabbri - nickname: (keul)
Installing this version report me an error.

The DATA_PATH in the locals.py module is a string like

sys.exec_prefix + '/Lib/site-packages/pygu/gui/'

but the library is installed with a "lib" (lowercase) directory name. This is a problem on linux systems.

After changed Lib to lib, all run normally.
spotlight

 
our projects
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
 
recent releases
Sep 1, 2010


Aug 29, 2010



Aug 28, 2010

Aug 26, 2010

Aug 25, 2010

Aug 24, 2010

Aug 21, 2010

Aug 19, 2010

Aug 18, 2010

... more!
 
for pygame related questions, comments, and suggestions, please see help (lists, irc)