Archive for the 'python' Category

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 [...]

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 once real [...]

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 [...]

Creating a GUI in Python using Tkinter – Part 2

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 [...]

Creating a GUI in Python using Tkinter

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 [...]

Python at Google

Friday, February 3rd, 2006

I Caught this while browsing the web and thought python lovers might find it interesting. It’s basically Matt Harrison’s write up of Greg Stein’s keynote at the SDForum Python Meeting. Greg is an an engineering manager at Google and his talk focuses on his previous experience using Python at work and how Google uses python. [...]

RSS reader – Part Three – Generator Class

Monday, January 30th, 2006

Please remember to read part one and part two. Classes and Generators All right, now that we have split our RSS reader up into functions, we’re going to go one step further and put our code into a class. We’re also going to do something a bit more advanced with our class and create a [...]

Classes

Saturday, January 28th, 2006

If you are familiar with Object Oriented programming you probably already know what classes are. If you are unfamiliar with the idea of classes in programming I suggest you give the class topic a read over at wikipedia, it should familiarize you with the idea of a class. Once you know what a class is [...]

RSS reader – Part Two (and Functions)

Tuesday, January 24th, 2006

This post is my continuation of my Python based RSS reader that I wrote in part one. As I said the code written in part one is not something that you would ever really want to use or maintain since it wasn’t broken up in to functions properly. So, in this part we’re going to [...]

RSS reader – Part One

Saturday, January 14th, 2006

All right so I’ve already figured out how to write an executable script that writes out “Hello World!” to the command line, now I need to figure out how to do something interesting. As a result I was surfing the Internet and reading some Python documentation, trying to come up with something to do but [...]