

Last saturday I was showing to you how pretty user interfaces can be built on Cocoa-Python. As I said, I had heard about other GUI Python libraries, but I hadn't tried them... until today. I have found this nice tutorial for both Tkinter and wxPython.
The tutorial says the first one is a standard library which comes with all Python installations while the second one does not, although I have tried both and both of them worked on my Mac OS X 10.5 without needing to install anything. It really surprised me that, since all the screenshots are from Windows, everything worked just fine on Mac OS X. That means you can have a graphic user interface your scripts, no matter if you run them on Windows or Mac OS X (I'll guess they work on Linux too :)
Another thing I liked is the cleanliness of the code, specially the code of the wxPython example, very easy and intuitive. The downside of both of these libraries is that you have to build the user interface manually on the code, including all component positioning and bindings.
[img_assist|nid=407|title=Building Python GUIs with Tkinter and wxPython|desc=Running the wxPython demo in TextMate|link=node|align=center|width=500|height=313]So as you see, there are plenty of options available. Go Python!
Recent comments
1 year 38 weeks ago
1 year 39 weeks ago
1 year 39 weeks ago
1 year 40 weeks ago
1 year 43 weeks ago
1 year 45 weeks ago
1 year 47 weeks ago
1 year 48 weeks ago
1 year 48 weeks ago
1 year 48 weeks ago