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

This project has no maintainer.
If you are the maintainer of this project, please sign up for an account and contact philhassey@yahoo.com with your account name and project title.

Tags:

Links

The project maintainer not yet posted any links for this project.

Pygame.org account Comments

If you wish to leave a comment with your pygame.org account, 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 19, 2014

Sep 17, 2014

Sep 9, 2014

Sep 8, 2014

Sep 7, 2014


Sep 5, 2014

Aug 26, 2014

Aug 21, 2014


Aug 18, 2014

Aug 2, 2014

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