Archive for March, 2006

Using Menus in Tkinter

Monday, March 27th, 2006

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, master):

"""Initialise the base class"""
[…]

Popularity: 22%

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

Sunday, March 19th, 2006

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 it is […]

Popularity: 31%

Creating a Game in Python Using PyGame - Part One

Sunday, March 12th, 2006

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 Python on […]

Popularity: 60%

Creating a Game in Python Using PyGame - Introduction

Saturday, March 11th, 2006

Well as someone who programs a lot and likes using computers creating a viedo game is always something that I’ve wanted to do. In the past I spent a lot of time learning OpenGL and actually went quite far in the creation of a simple/not-so-simple game. The game was put on hold indefinitely […]

Popularity: 39%

RSS reader - Part Four - Integrating with the GUI

Sunday, March 5th, 2006

So far our RSS reader has been completely command-line, which is functional but not as nice as we’d really like to have it. So what we are going to do is integrate the GUI that I created in my two Tkinter GUI tutorials into our RSS application.
If you look at our GUI application you […]

Popularity: 21%