Archive for the 'tutorial' Category

Extending our PyGTK Application

Saturday, September 2nd, 2006

In this tutorial we are going to extend our PyWine application to allowing you to edit the items that you have added to the list and save an load the wine lists you create so that you don’t have to keep entering them in all the time.

WordPy offline blogging tool

Saturday, August 19th, 2006

Tweet Topics covered in this tutorial: Glade PyGTK gtk.FileChooserDialog gtk.FileFilter gtk.TextView gtk.TextBuffer gtk.TextMark gtk.MessageDialog You can download the full source for this tutorial here. One of the things that I found the other day while I was surfing the web looking for information on Python was this WordPress Python library. Since I use WordPress for […]

Writing a Custom Widget Using PyGTK

Tuesday, July 25th, 2006

Tweet One of the things that I wanted to add to my simple PyWine application was an easy way for people to rate their wine. There were lots of different ways to do it but since I was looking for a tutorial to write I decided that I wanted to do it the way that […]

Building an Application with PyGTK and Glade

Tuesday, May 30th, 2006

Tweet After working with PyGTK and Glade for my first tutorial, I decided to write another more complex tutorial but I couldn’t think of a topic (Note: If you have any suggestions for any tutorials or posts I’d love to hear them) so I decided to work on creating a simple application and hopefully useful […]

Creating a Game in Python Using PyGame – Part 3 – Adding the bad guys

Sunday, April 16th, 2006

Tweet All right in this section of the tutorial we are going to start adding the bad guys. If you are familiar with the changes that we made in part two it should be pretty clear to you how are are going to create these bad guys. If you haven’t already you should check out […]

Using Menus in Tkinter

Monday, March 27th, 2006

Tweet This is a quick post on how to use menu’s in Tkinter, if you are unfamiliar with Tkinter you might want to check out some of my other Tkinter related posts. We are going to start of with a basic python Tkinter app: #! /usr/bin/env python from Tkinter import * class App(Frame): def __init__(self, […]

Creating a Game in Python Using PyGame – Part Two – Creating a level

Sunday, March 19th, 2006

Tweet All right in Part one we actually created a semi-working almost-game, in part two we’re going to go a bit further, in part two we’re going to add the walls that will make help make PyMan (our python based PacMan clone) an actual game. Note: Part one has been mistakenly half-deleted by me, so […]

Creating a Game in Python Using PyGame – Part One

Sunday, March 12th, 2006

Tweet Prerequisites In order to follow along with this tutorial you will need Python 2.4 and PyGame 1.7.0+ installed. Since I’m doing this all on a Mac and Python 2.4.2 is not available from MacPython or any other site as a disk image I decided to install from source. If you are try to build […]

Creating a GUI in Python using Tkinter – Part 2

Sunday, February 19th, 2006

Tweet This post is going to build off of Creating a GUI in Python using Tkinter which introduces the basic elements needed to create a GUI using TKinter. This post will take that introduction a bit further and build a more complex GUI application and use some more widgets. The GUI that we are going […]

Creating a GUI in Python using Tkinter

Wednesday, February 8th, 2006

Tweet Up until now we’ve focused on python applications that only run in the command line. For a lot of tasks this is great, but in order to be really impressive we’re going to want to create a GUI for some of our python applications. There are a lot of python GUI toolkits out there, […]