存档 2008年7月

24 七月

Have you ever run into a problem where your favorite Python IDE can't determine the type of a variable, and thus you get no auto-completion? There is a built-in function in Python called isInstance(your_variable, type_of_variable) that is designed to compare a variable to a class type, and return true or false. However, just the ...


21 七月

There comes a time in every man's life where a single goocanvas.Canvas widget just won't cut it. Imagine you need two separate canvases for your interface, but you want them to scroll together with a single scroll bar. How would you solve this problem?

First, to enable a goocanvas.Canvas object to scroll is ...




10 七月

Here is a quick update for everyone following this project. I am working on an prototype timeline, using the Gnome canvas, GTK, and Python. So far my "prototype first" methodology seems to be playing out nicely. It is allowing me to quickly test out various libraries, GUI techniques, and design patterns, ...


每日存档