Copyright 2005 John Judd

PyUI2 is a cross platform user interface library written in Python. It is targeted primarily for game development, but can be used to develop robust user interfaces for other applications. It uses the concept of themes to provide the ability to modify the look and feel of the application, and the concept of devices and graphics contexts allow the use of different systems to generate the GUI graphics and handle interaction with the user.

Unlike other Python GUIs, PyUI2 is written entirely in Python. There is no C/C++ source code specific to PyUI2 to compile for a particular platform in order to get PyUI2 to work. It's simply a matter of copying PyUI2 to the site-packages directory of your Python installation, and making sure that the libraries that PyUI2 depends on also exist.


As mentioned above PyUI2 is extremely simple to install. In your Python installation, locate the site-packages directory. On Windows this is usually the path:

Now just unzip the PyUI2 release that you have downloaded into site-packages, and voila! You are almost ready to go.

The next step is to install the libraries that PyUI2 is dependant on, if they are not already installed. The two libraries that PyUI2 depends on are Pygame and PyOpenGL. There are located at and respectively, and will also be installed into the site-packages directory.

If you are only planning on using the Pygame 2D device, there is no need to download PyOpenGL, otherwise download and install both libraries. Follow their instructions for installation, and there you have it, you can start writing PyUI2 based games and applications.