pygame is
Simple DirectMedia Layer is
Site Swing

pug - 0.8.1

Ivan DelSol (sunspider)



A 2d game building environment. Featuring:
* wx based game-builder gui
* automatic code generation
* real-time game object manipulation

The main pug example project is PIG, a 2d game building environment using python. To try it, go into the Pig_Demo folder and run
System requirements:
* Python 2.5 (
* wxPython (
* pygame 1.9.1 for Python 2.5 (
* PyOpenGL (
* Numeric (available in downloads) OR numpy (
* Opioid2D (available in downloads) For Mac and linux, use the .gz source package, which has a few requirements that aren't obvious: build-essential, python-dev, libgl1-mesa-dev, and swig.

Python Universal GUI automatically creates GUI windows for python objects. These windows allow you to view and alter your objects at runtime, as well as save and load their states. Pug uses wxWidgets to automatically generate GUIs for program objects. It can be used as a testing platform and can also be adapted as an editor.

* pug: this is the GUI generator
* pig: Python Inventor Gizmo. This is a 2D game builder based on pug.
* Pig_Demo: an example project using pig. Requires pig and pug. Run to try it. This is meant to be used with the Quick Start guide available in downloads.


Some bug fixes. Most notably: no more crashing when you drag a Sprite, new Sprite images don't show up blank.


Home Page:


click to view original size


pug - 0.9.1 - Jan 24, 2011
pug - 0.8.1 - Jul 7, 2010
pug - 0.8 - Jul 2, 2010
pug - 0.1.4 - Aug 4, 2008
pug - 0.1.3 - Jun 28, 2008
pug - 0.1.2 - Jun 25, 2008 account Comments

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

January 24, 2011 5:07pm - Ivan DelSol - nickname: (sunspider)
To contact me, please use the discussion group on the google code page. Pygame doesn't forward your comments to my email :(
August 18, 2010 12:18am - Eric Pavey - nickname: (akeric) - 5/5
Thanks for the hands on demo. Amazing stuff man!
July 7, 2010 2:21am - Ivan DelSol - nickname: (sunspider)
New release with some bug fixes. It's amazing how people using your code makes things come to light!
July 2, 2010 3:54pm - Ivan DelSol - nickname: (sunspider)
Linux and Mac Opioid2D installer now on download site. Users on those OSes should be able to make this work now.
July 2, 2010 3:14pm - Ivan DelSol - nickname: (sunspider)
As you can see, this is about 2 years of upgrades from my cave in Oregon. PLEASE let me know if you have trouble making it work. Linux and Mac requirements coming very soon.
December 8, 2009 6:03pm - Nathan Timmerman - nickname: (dullstar)
...once i feel like picking up the other stuff to make it work.
December 8, 2009 6:02pm - Nathan Timmerman - nickname: (dullstar)
I think I'll try this. After all, what do I have to lose? I REALLY want to make a game, but I need it to work well on Linux, Windows, and Mac.
July 5, 2008 10:04pm - Ivan DelSol - nickname: (sunspider)
If anyone wants to use PUG with their project, post here and I'll help you get started!
June 30, 2008 9:30pm - Ivan DelSol - nickname: (sunspider)
I'll build zip and tarball with next release.
June 30, 2008 2:03pm - pymike - nickname: (pymike)
Can you release a zip of it? It's kinda hard downloading stuff from SVN :S
June 28, 2008 9:37pm - Ivan DelSol - nickname: (sunspider)
Okay... new release is up, and should be easier to demo.
I believe that pug is already useful for pygame projects if you take the few hours it will take to integrate with your game...
BTW, it runs as a separate thread looking in on your project, so it need not be released with your final version.
June 26, 2008 10:25pm - Ivan DelSol - nickname: (sunspider)
Hmmm... that must be because I am using relative imports for the projects. However, my intent was for the user to put the four main directories in the PythonPath. NOT just the root pug folder. The idea is that pug_opioid is a library, pug (as in pug/pug) is a separate library, and each project is its own python project.

Sure enough, I somehow left out the testobject module. 0.1.3 here I come.

I'll put some readme files in there to explain how to run the demos. And a screenshot...
June 26, 2008 2:16am - Claudio Canepa - nickname: (claxo)
To start the opioid demo I needed to move all files and dirs under
, except __init__ and the ones beginning with '.', to
June 26, 2008 1:51am - Claudio Canepa - nickname: (claxo)
Checked out rev 7, the mygame example seems to be missing a module 'testobject' ?
Also, for both the opioid - pygame demos it is unclear how to actually start the demos.

our projects welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
recent releases
Jan 31, 2017

Jan 24, 2017

Jan 19, 2017

Jan 18, 2017

Jan 7, 2017

Dec 30, 2016

Dec 8, 2016

Nov 28, 2016

Nov 27, 2016

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