These are both powerful and useful modules used when coding with Python to create advanced GUIs and front-ends for various applications. However, I've seen a lot of controversy on which one to actually use.
PyGTK comes pre-packaged with many distributions including Ubuntu; a huge plus there. wxPython can be installed in Ubuntu through apt-get; however, as a topic in Software Support shows (http://www.ubuntuforums.org/showthread.php?t=12485), the wxPython in Warty still uses GTK1 which is extremely ugly and out-of-place. I truly hope Hoary has changed that.
wxPython is highly cross-platform, and the same code can be used across many systems with no additional work. PyGTK is as well, but looks quite alien on Windows. This can be fixed with some background and cosmetic work; a hassle to some.
One thing to note is that both of these libraries use GTK on Linux; the actual coding done with them is different however. wxWidgets also directly calls on the Windows and OS X APIs just fine, which is most likely a good thing since this means your code works absolutely for the majority of desktop users perfectly. PyGTK uses GTK on all platforms which can either be regarded as a positive or negative aspect.
I've looked through many code examples, and wxPython seems to achieve the same effect that PyGTK does in much less time and fewer lines of code (around 20-25 lines for a Hello World program in PyGTK, and 10-15 in wxPython from what I've seen).
PyGTK sports Glade, hailed as the number one GUI designer for Python. wxPython as many answers to this, including Boa Constructor and PythonCard, and the one and only wxGlade.
I'd like to see the opinions of the Ubuntu users here on which is superior in their eyes; wxPython or PyGTK? Let's keep it friendly and clean as well.
Bookmarks