[pygtk] Tutorial: Writing PyGTK applications in a visual way
Sandino Flores Moreno
tigrux at ximian.com
Tue Nov 9 03:06:54 WST 2004
I have written a small tutorial which shows how to use SimpleGladeApp
and simple-glade-codegen.py. They are software I wrote and they make
programming with pygtk much easier.
The big feature of simple-glade-codegen.py is that after you write your
own code in callbacks, and you run again the generator, your code won't
be lost. It is made by using comments of context in the code.
Callbacks and creation functions (for custom widgets) are used as usual
methods is classes, and widgets are used as attributes of the class as
you can see in this example:
Feel free to tell me comments, suggestions and complains.
The url for the tutorial is:
Also, I have made a patch for glade 2.6.5 to enable to use my code
generator with glade.
The url for the patch is:
And here you can see a screenshot of glade patched:
Here is an example of the style of generated code
And of course, the code generator and its module:
I'll write second part of this tutorial next weekend.
Thanks for reading.
More information about the pygtk