Archive for the 'tutorial' Category

Elegant XML parsing using the ElementTree Module

Wednesday, May 7th, 2008

Mark Mruss Note: This article was first published the October 2007 issue of Python Magazine XML is everywhere. It seems you can’t do much these days unless you utilize XML in one way or another. Fortunately, Python developers have a new tool in our standard arsenal: the ElementTree module. This article aims to introduce you [...]

PyLan a GTD todo application written in python and PyGTK – part four context menus!

Sunday, September 23rd, 2007

PyLan Four Hello welcome to the fourth installment of the PyLan tutorial. This will be a quick tutorial to introduce one feature: context (or popup) menus. I’ve had many questions regarding this so I thought I would take a quick stab at it. If you want to follow along with the code in detail, and [...]

Creating a game using python and Silverlight 1.1

Sunday, July 29th, 2007

This tutorial assumes that you have a passing understanding of Silverlight and Microsoft’s .NET technologies. If you do you should have no trouble understanding everything in this code, and chances are you will understand some of it more then I do! But to start it off here is a little bit of information straight from [...]

PyLan a GTD todo application written in python and PyGTK – part three

Wednesday, July 4th, 2007

PyLan three Hello welcome to the long-time-coming third article in this tutorial. I apologize to everyone (anyone?) that was waiting for it. I have been very busy as of late and have had much of my time taken up by a few other python projects, that I hope to be able to show you all [...]

PyLan a GTD todo application written in python and PyGTK – part two

Sunday, March 11th, 2007

PyLan two This is part two of the PyLan tutorial series, if you want to follow along with the code in detail, and have not done so already, you should read part one of this series. In this tutorial I will go over the following items: Showing a popup window Working with a gtk.Calendar widget [...]

PyLan a GTD todo application written in python and PyGTK – part one

Saturday, February 17th, 2007

Introduction All right, many of you have probably heard of, or read, David Allen’s book Getting Things Done if not it’s a pretty interesting book about how to organize the things in your life. As I was reading it I thought that a simple todo list could be created using Python and PyGTK pretty easily, [...]

Creating a GUI using Python, WxWidgets, and wxPython

Monday, January 29th, 2007

After putting off this tutorial for as long as I possibly could (I’m not sure why) I have finally decided to buckle down and learn how to use WxWidgets using the WxPython Python bindings. Installing Getting WxWidgets and WxPython installed on my Debian Linux computer was as simple as installing the python-wxgtk2.6 Debian package. If [...]

TextWidget – A simple text class for PyGame

Wednesday, December 13th, 2006

Introduction All right, this is just a little tutorial about working with text in pygame. Now, this isn’t the only way to work with text, there are many other methods to do this, in fact much of the time you’ll probably end up using images for interactive text. So this is mainly meant to serve [...]

WordPy 0.2 – Using XML to Save and Load Data

Tuesday, October 24th, 2006

All right, so we have our base WordPy application running, so let’s try to extend it a bit more by letting you load and save blog posts to and from an xml file. Please note that this tutorial simply shows one method of saving and loading data using xml, there are many different methods and [...]

IronPython Hello World Tutorial

Monday, October 2nd, 2006

As some of you may have heard IronPython 1.0 has been released. If you don’t’ know what IronPython is, it’s: a new implementation of the Python programming language running on .NET. It supports an interactive console with fully dynamic compilation. It is well integrated with the rest of the .NET Framework and makes all .NET [...]