PyGTK vs. wxPython

Maciej Dziardziel fiedzia at fiedzia.prv.pl
Mon Apr 25 12:38:12 EDT 2005


dcrespo wrote:

> Hi all...
> 
> I think wxPython is much better than PyGTK. First of all, PyGTK needs
> the GTK runtime installed, whereas wxPython is entirely Python's
> modules, so It facilitates the apps' distribution.

As already mentioned, it is not true. You will still need GTK
(on Linux, not on Windows).

> Also, PyGTK uses 
> specific controls or widgets of GTK, while wxPython uses native
> controls of the platform where the app is running.

Which has both pros and cons. wx unification isn't perfect (i had some
problems with drawing that required some workarounds specific to a
platform), it also doesn't allow you to really (or at least easy) use
platform specific functionality (GTK app can be easily convert to GNOME
app).

> I'm learning both, but at a slow step, so I want to know all the
> comments about this subject in this group.

Go to www.pygtk.org, there are many tutorials, faq and other documentation
and try it. 
 
> I heard about Glade to make the graphic layout of the app and then
> export it as XML. Then, it connects to PyGTK. The problem I see is that
> What if you want to refer to a state of a specific radiobutton of a
> radobutton's group? It seems to be very troublesome.

Do not listen, just test it. For me glade is the best way to define user
interface. This is the way GUI should be created IMHO. You can access any
widget just by calling its name - you will find details in any glade
tutorial.
 
> Please, post any comments about the pros and cons of each library, and
> the proper way to construct the graphic layout (generating XML through
> Glade, or by hand-code). Thanks.

I don't have much experience with GTK on Windows, but i really like on
Linux, way more then wx. It works great, is well documented (including
python specific issues) and possible GNOME integration might be great help.

-- 
Maciej "Fiedzia" Dziardziel (fiedzia (at) fiedzia (dot) prv (dot) pl)
www.fiedzia.prv.pl

Music is the art of thinking with sounds.



More information about the Python-list mailing list