gtk vs wx

Hi everyone,

Now that I have become an intermediate python programmer, I want to learn how to build some GUIs. I am trying to decide between WX and GTK, and was hoping to get input from this list specifically.

GTK seems to have the most active support in matplotlib. Is this true? The amount of demo code for learning pygtk is not as good as for wxPython, for example, I cant figure out how to call a print dialog with gtk. Does one exist?

WX seems to have the most broad support in the Python community. WX seems easier to work with based on the demo code, but once I graduate and make the switch to Linux, it seems a waste to be interfacing GTK through wxPython. WX needs another person to help with maintanence, and I want to help with Matplotlib when I become experienced enough to be of use to the project. But for now, I need to be able to analyze data and finish school.

While undecided on a GUI, I am decided on python and matplotlib, so your input would be valuable. Right now I don't have enough experience to make an intelligent decision.

Thanks in advance,

Darren

···

--
Darren S. Dale
dd55@...163...

PGP public key available

Hi everyone,

Hi Darren,

Now that I have become an intermediate python programmer, I want to
learn how to build some GUIs. I am trying to decide between WX and GTK,
and was hoping to get input from this list specifically.

wxPython wraps wxWidgets which wraps GTK on Unix machines.

From wxwidgets.com:
  "wxWidgets gives you a single, easy-to-use API for writing GUI
applications
  on multiple platforms. Link with the appropriate library for your platform
  (Windows/Unix/Mac, others coming shortly) and compiler (almost any popular
C++ compiler),
  and your application will adopt the look and feel appropriate to that
platform. "

So you get cross platform support for free. I had a look at pyQt which looks
very promising, but has some limitations if you want to sell pyQT
applications
for windows machines.

There is a package called PythonCard (http://pythoncard.sf.net) which is
a layer above wxPython. PythoCard simpliefies programming simple GUIs,
but is restricted in its functionality.

wxPython is my workorse for GUI programming for some years now and
I'm quite happy with it. The mailing list is friendly and helpfull, too.

According to http://matplotlib.sf.net there is a wx backend, but I never
used it.

Greetings, Uwe.

···

There is a backend from wx to maplotlib, along with GTK and TKinter also. I'm just recently started using matplotlib and wx. Seems to work fine - though not very fast for what we're trying to do (multiple graphs on screen, updated at a fixed multi-Hz rate). Having said that, matplotilb does a decent job and the feedback and turnaround on its mailing list is great. I haven't delved far into wx yet, but for the most part its decent with pretty good documentation.

HTH
Stephen

···

On Jul 19, 2004, at 4:59 PM, Uwe Schmitt wrote:

Hi everyone,

Hi Darren,

Now that I have become an intermediate python programmer, I want to
learn how to build some GUIs. I am trying to decide between WX and GTK,
and was hoping to get input from this list specifically.

wxPython wraps wxWidgets which wraps GTK on Unix machines.

From wxwidgets.com:
  "wxWidgets gives you a single, easy-to-use API for writing GUI
applications
  on multiple platforms. Link with the appropriate library for your platform
  (Windows/Unix/Mac, others coming shortly) and compiler (almost any popular
C++ compiler),
  and your application will adopt the look and feel appropriate to that
platform. "

So you get cross platform support for free. I had a look at pyQt which looks
very promising, but has some limitations if you want to sell pyQT
applications
for windows machines.

There is a package called PythonCard (http://pythoncard.sf.net) which is
a layer above wxPython. PythoCard simpliefies programming simple GUIs,
but is restricted in its functionality.

wxPython is my workorse for GUI programming for some years now and
I'm quite happy with it. The mailing list is friendly and helpfull, too.

According to http://matplotlib.sf.net there is a wx backend, but I never
used it.

Greetings, Uwe.