if e.type == QUIT or (e.type == GUI and e.widget == quit_button):
raise SystemExit()
Great!
I like how you have integrated the GUI events with a normal pygame event loop: http://program.sambull.org/sgc/tutorial.events.html
For example, a quit button could work like the following:
if e.type == QUIT or (e.type == GUI and e.widget == quit_button):
raise SystemExit()
Could the tutorials be based on examples? Then people can run the example, and learn that way as well.
You might want to consider putting the examples in sgc.examples with relative imports, so they are easier to run. Likewise, consider adding your unit tests into somewhere like sgc.tests.
Dirty rects are important for performance when not using opengl, have you considered using pygame.sprite.DirtySprite instead of pygame.sprite.Sprite for a base class?
Using custom images is not documented or properly tested (coming
in the next release).
OpenGL support is not working in this release.
There's an issue with transparency, so (0,0,0) means
transparency in this release, if you find things are invisible
try changing the colour (perhaps (0,0,1)).
Hi Sam Bull,
How ru? I check the website called http://www.pygame.org.
Does this website belong to you? If no, could please help find the email address for this site?
Can I please some information, data and website like? I want
your permission, so that I can add this to my webpage. Christmas is
nearly here. I brought my Raspberry Pi kit from Maplins. It would be
nice for a child to have few games & apps to play with. I want to
help people get the best out of the Raspberry Pi. I'm still learn
about the Raspberry Pi & Linux. I am going to add the Omxplayer. When I
first got the Pi, I did not know that the wheezy-raspbian had Omxplayer (basic) which is
hidden. I would like to help people get the best out of the Pi for
Christmas. Keep up the good work.
Justin