tags:

views:

1672

answers:

7

I am a newbie at Python. I see a few GUIs listed in the Python wiki but I would like to know what you think is the easiest to use. I have 2 requirements

  1. Have buttons, tabs and a textbox
  2. Be able to load an image in memory/from the web (I am using pyCURL to download the temp image(s))
+13  A: 

I believe that wxPython is your best option. The GUI that comes with the Python standard library (Tkinter) is pretty nice, but doesn't support tabs out of the box. There's an extension called Tix which does, but it is a cross-language library which is well documented for Tcl and poorly documented for Python.

I've been using wxPython recently and have been very impressed. It's easy to use, is extremely well documented for both Python and C++, and supports your requirements.

Eli Courtwright
It's too bad that Python's Tk support is so far behind the latest iteration of Tk. The standard distribution of Tk has had tabs for quite a while now (since '07) with the new themed widgets. It's a pity Python isn't keeping up.
Bryan Oakley
As far as I know, Tkinter even does not operate with WinAPI, but has its own buttons etc. IMHO, i'ts bad.
Kirill Titov
You're correct, although whether that's bad depends on whether having a native look and feel for your app is desired.
Eli Courtwright
+8  A: 

Well, if we are voting, I would vote for PyGTK. It has the

  • best API,
  • fantastic documentation and tutorials,
  • a number of helper libraries,
  • a thriving community,
  • Glade user interface designing (edit: nosklo)
  • and not too hard for beginners.
Ali A
and you have glade.
nosklo
+11  A: 

http://wiki.python.org/moin/PyQt

Qt used with C++ is very nice, but I cannot say what PyQT is like since I never used it.

Ronny
I agree that it's nice, unfortunately it's only free to use without buying a license for open source projects. This makes it a non-starter in a lot of corporate environments.
Eli Courtwright
I tried (for research purposes) halfway rewriting one of my company's apps to PyQT. It was a pleasant experience.
Deestan
+1  A: 

I already answered here + under Wx you have something called XRC which is very similar to Glade.

sir_lichtkind
A: 

I use wxPython quite a bit for my GUI needs; the simplest reason for me is that I've found it much easier to distribute wxPython apps than PyQt apps. (Additionally, Traits are better supported under wxPython that Qt, but that is changing.) That being said, XRC and Boa Constructor and Glade (which can also build wxPython GUIs with wxGlade) are all way, way behind Qt designer in sophistication and reliability.

So, because I was willing to spend a bit of time writing the layout code, etc, and because I had to distribute to several platforms, I went with wxPython. But if you have a more controlled deployment environment and you want to design graphically, PyQt might be a better fit.

Matt
A: 

It would depend on your background as a programmer. If you're used to functional programming, I would go with Tkinter. If you're used to event-based programming, I would use wxPython.

sli
Hmm interesting, what's functional about Tkinter?
wxPython lets you register events hooked to form elements, while in Tkinter you register functions as call backs to elements. I suppose the line dividing event-based and functional in this instance is fine, but that's how I feel about it.
sli
+3  A: 

PyQT. Here is a small tutorial.

Bartosz Radaczyński
It's not free though unless your project is GPL'ed.
Emrah
There's always the LGPLd pySide (http://www.pyside.org/), but I'm not sure what the current status is like.
Ranieri