Google Groups

Re: [pygame] SGC 0.1.4 Released

illume Jun 10, 2012 12:28 AM
Posted in group: pygame mirror on google groups

I like how you have  integrated the GUI events with a normal pygame event loop:

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?


For those not familiar with launchpad...
You need bazaar (

Then to checkout the branch:
    bzr co lp:simplegc

Or you can browse the code online:

On Fri, Jun 8, 2012 at 1:54 PM, Sam Bull <> wrote:
I have been working on this toolkit as part of GSoC, and am ready to
announce the next beta release.

The main features of this release is more consistent widget sizing by
making labels external to their widgets. There has also been some work
on extending the support for events, with a new tutorial in the
documentation to explain how this works.

If you'd like to try it out, download the release code. As long as you
have Python 2 and Pygame installed, you should be able to run the
example file immediately.

To use it in your own projects, simply copy the 'sgc' sub-folder into
the top-level of your project or use to install it system-wide.

Please check it out at:

As before, you can check out the documentation at:
If you'd prefer an offline Devhelp version, there is a separate download
on Launchpad.

I'd appreciate any feedback on the project or the documentation,
including the new events tutorial.

Limitations still in this beta release:
       No Python 3 support.
       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)).
       There's no developer documentation to help write your own