Archive for the 'tutorial' Category
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.
Posted in PyGTK, glade, gui, python, tutorial | 21 Comments »
Saturday, August 19th, 2006
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 this site I thought that I’d play with it a [...]
Posted in PyGTK, WordPy, glade, python, tutorial | 36 Comments »
Tuesday, July 25th, 2006
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 [...]
Posted in PyGTK, gui, python, tutorial | 18 Comments »
Tuesday, May 30th, 2006
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 topics [...]
Posted in PyGTK, glade, gui, python, tutorial | 71 Comments »
Sunday, April 16th, 2006
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 [...]
Posted in pygame, python, tutorial | 33 Comments »
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"""
[...]
Posted in beginnings, gui, python, tkinter, tutorial | 6 Comments »
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 [...]
Posted in beginnings, pygame, python, tutorial | 15 Comments »
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 [...]
Posted in beginnings, pygame, python, tutorial | 44 Comments »
Sunday, February 19th, 2006
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 to [...]
Posted in gui, python, tkinter, tutorial | 5 Comments »
Wednesday, February 8th, 2006
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, but [...]
Posted in beginnings, gui, python, reference, tkinter, tutorial | 12 Comments »