Archive for the ‘pygame’ Category

Tutorial Video 7: a template for Pygame programs


Download WaryPy.vdi for VirtualBox


A few people have commented saying that they have tried to run RacyPy in VirtualBox and run into problems with PAE.

I’ve made a .vdi based of “WaryPy”. No PAE required.


MD5 sum:



Use pygame to make a gui.


Remember that I said the main loop in our tkinter gui program was like a pygame graphics window? Well in this post I am going to use pygame to make a gui.

Here’s the code.

[Note - I will add to this post later!]

While you wait for your Raspberry Pi, why not use RacyPy2?


How to use RacyPy or WaryPy.

1. Download the .iso.

2. Download and install DVD Decrypter (or use you favourite .iso burning software).

3. Right click on the .iso file and choose “Burn with DVD Decrypter.

4. Reboot your PC. It should boot from the CD, if it doesn’t do this by default, look for a message telling you what to press for boot options (often F2 or F9).

5. That’s it.


To run WaryPy in Virtual Box.

1. Download WaryPy.vdi.

2. Download and install VirtualBox.

3. Start VirtualBox. Choose “new”.

4. Follow the instructions on screen and choose “Linux” and Linux 2.6.

5. Choose “use existing hard disk” and find the .vdi file.

6. Start your new virtual machine.


Since Liz posted on the RPi homepage about this LiveCD, I’ve had a lot of hits on the blog. Quite a few people have asked about running Puppy in VirtualBox. This works really nicely and I have uploaded a .vdi file for WaryPy (this seems to be better for VB as it doesn’t need PAE).

The .iso of RacyPy is  here.

This Operating System is aimed at people with no experience of using Linux. If you are excited about the Raspberry Pi and keen to start learning to program, this could be useful to you.


1. The original version only came with Python 3 and Pygame. This one has Python 2.7.2 and 3.1.4. Both have Pygame installed which means you are ready to start learning to code whichever version you favour.

2. On the old version I had added a lot of tutorials for several programming languages. This time I have decided to keep it simple. There are lots of great materials for learning Python (you’ll find them in an archive file in my-documents). I’ve left out the others, becuase I am sure that those who want to try other programming languages will have no difficulty finding them.

3. I have included the Java Development Kit (1.7.2). This means that if you wan to learn Java too, you can compile and run Java code without needing to install anything.

4. Typing tutorial included. The nice “gtypist” program is installed, because good coding requires typing skills!

As before, there’s no need to install anything – you just put the disc in your optical drive and boot from it. You can save your work to a memory stick or onto the hard drive without doing anything at all to your existing operating system. If you want to install it, there’s lots of help on the Puppy forum.

As before, this OS is based on Racy Puppy. Racy has a very up-to-date Linux kernel. But it’s a lightweight distribution that should run nicely on quite old machines (eg it’s fine on my old Toshiba laptop with a Pentium 3 processor and 256mb of RAM). If there’s an old computer in your house that no-one uses any more, you will probably find that RacyPy runs really well on it. So you can use this system while we wait for our RPis to be delivered!

happy coding


BugFix (if you haven’t got the latest version).

You may notice that Java isn’t working in Seamonkey. To fix it, click on this link and choose open with petget. I put the wrong link in the plugins folder – oops!