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, so I decided to create the application and write a tutorial surrounding it. Since the actual application is quite large I have decided to break it up into a series of tutorials, each highlighting a few specific tasks. The full goal of this series is to show everything that is required when creating a python/PyGTK based application, for the GUI setup all the way to distribution.
These tutorials assume that you have a basic knowledge of python and PyGTK. If you have not already done so it is recommended that you take a look at some of my previous PyGTK based tutorials as I will be glossing over much of that which is explained there:
- Creating a GUI using PyGTK and Glade
- Building an Application with PyGTK and Glade
- Extending our PyGTK Application
- Translating your Python/PyGTK application
- Writing a Custom Widget Using PyGTK
- WordPy offline blogging tool
- WordPy 0.2 – Using XML to Save and Load Data
PyLan – part one
So the application that we will be creating will be called PyLan, pronounced: plan. In brief it will be used to create a tree of tasks that can be organized into categories and subcategories.
You can download the full source to this tutorial here.
Part one of this tutorial will introduce you to the idea of the application and create the basic shell for it. It will outline the following:
- Creating the basic GUI in Glade
- Working with a gtk.TreeView
- Working with a gtk.TreeStore
- Saving and loading the data from the tree using cPickle.
- Using a gtk.MenuToolButton