Golovko
Golovko

Reputation: 609

Selecting GUI on windows (wxPy vs pyQt)

We are planning to develop an application for monitoring and configuring our service (which is running on remote server). After long time of discussion, we decided for python as platform for our app, because we love and know python. But we don't know, what GUI toolkit preferred for our aims. We need fast (for development and running) app, whose users will be Admins, Maintainers and Account managers.

There are two GUI toolkit for python, which we know: wxPython and pyQT. Anybody have arguments regarding pro and cons? And maybe someone knows any commercial applications, using these products (only python version of toolkits)? Links are desirable.

Thanks.

Upvotes: 18

Views: 11825

Answers (8)

Moayyad Yaghi
Moayyad Yaghi

Reputation: 3722

i've been using wxpython for 3 years .. and now we had to switch into pyqt since qt is integrated in maya 2011 .. however , wxpython is more straight forward and you can easily start working on it and learn it from zero fast .it provides and awesome resources and decumentation . but QT provides more powerful features that you cant find in wxpython , for example ( the multi touch detection) , QT also provides good support for drawing devices like pc tablets and so on .

qt also provides a good designer that makes u create interfaces faster.
one of qt disadvantages is it's license since it's not free like wxpython

Upvotes: 4

Bryan Oakley
Bryan Oakley

Reputation: 386230

You wrote "There is two GUI toolkit for python, which we know: wxPython and pyQT." You are forgetting about the most obvious toolkit: tkinter. That's actually part of a core python distribution, no extra downloads required.

Some people don't like Tk but that's often due to ignorance. Tk is a fine choice for a cross platform toolkit. It uses native widgets on windows (and has for many years) and the latest versions of tk use themed widgets on all platforms.

Upvotes: 5

user127712
user127712

Reputation: 69

I want to point out two strengths that wxPython has compared to pyQt:

  1. It uses native widgets on every supported platform. So the apps have a native look and feel. I'm aware that PyQt uses native styles, but the behavior ("the feel") is reported to be somewhat non-native especially on the Mac.
  2. It provides a wider choice of widgets out of the box.

Upvotes: 3

CyberFonic
CyberFonic

Reputation: 4047

I choose wxPython after much research. The reasons were:

  • "wxPython in Action" book by Rappin & Dunn
  • The voluminous examples that come as part of the wxPython download
  • The number of projects that have used wxWidgets
  • The fact that wxPython code runs equally well on Linux, Mac OS/X and Win32

I did consider pyQT and other researchers are successfully using it. After writing many examples in all API's that I considered, I found wxPython ticked the most boxes for me.

As for Tkinter (TIX), I think it looks rather dated. Unless you are using IronPython or Jython I would not consider using the associated native windowing APIs. For another project which is to be delivered exclusively on .Net, I plan to use WinForms after lots of great feedback from StackOverflow members.

Upvotes: 12

lambacck
lambacck

Reputation: 9926

You should also check out PyGTK. It is similar to pyQT in programming model but does not have any licensing cost since it is LGPL. I always found it nice to work with as a developer. The main drawback over pyQT is that in some cases they take away functionality in things like file chooser dialogs in favour of simplicity for the user.

Upvotes: 2

Alex Martelli
Alex Martelli

Reputation: 882181

I've always liked Qt's "signals and slots" conceptual model, though I guess it may take a bit of learning for developers who are more used to other models of event propagation and handling. Personally, given a choice, I'd pick PyQt because of this programming aspect.

Upvotes: 6

gimel
gimel

Reputation: 86422

A Windows (and Mono) option for a GUI toolkit is provided by IronPython. It provides access to the Winforms and WPF libraries. For examples, see Developing with IronPython & Windows Forms, and many others.

If you want to expand the list of options, consider building a Web App instead of a (local) GUI app. You say your service runs on a remote server, so networking is part of your requirements. Once you start down that road, Python provides a bewildering amount of options.

Upvotes: 3

Shane C. Mason
Shane C. Mason

Reputation: 7615

Well, I am a fan of QT: it has a more modern look and feel. However - your choice should be based on your actual requirements. Simple trade studies are helpful for this. Make a list of what features your toolkit must have and what features would be nice to have and then weight each item appropriately. Then look at all your options (TKinter also) and then score them according to your feature list (using the weights you assigned to each feature requirement). At the end it should be evident which one is right for your project.

Upvotes: 9

Related Questions