46
  • Need advise from those who have minimum health experience to design GUI interfaces with Python.
  • When and what to choose depending of GUI complexity?
  • Which GUI builders can we use to have a better development quality?

This is my first GUI design, and I've did it without GUI builder, at the moment stacked because I've understood, that ObjectListView wrapper for wx.ListCtrl haven't natively to include easily progress bar or gauge elements. (see column "Upload status" from picture).

Note: ObjectListView has progress bar in .Net version, at the moment not in wx.Python.

P.S: I found this wonderful Python GTK+ Full Stack Tutorial

enter image description here

4
  • 2
    Are you unaware that tkinter is another toolkit you can use, or are you explicitly leaving it out of consideration for some reason? Commented Oct 25, 2013 at 17:08
  • Yes, tx u, Tkinter is an alternative too, there could be more than that, and yes, tx u reminded it too me. I just want to hear not just my voice, but some other opinion :) Thank You :)
    – user1630938
    Commented Oct 25, 2013 at 17:36
  • To @BryanOakley And some time could be the only near solution, it's "shipped" with python source code and installer also, what i have seen exploring inside it's PythonLand :)
    – user1630938
    Commented Oct 25, 2013 at 17:37
  • TkInter has its limitations, a lot of times it requires to farther expand it with ttk. It's better to use newer toolkits as they are the most polished and up to date unless one has few requirements and needs the small disk space and availability that Tkinter provides.
    – elig
    Commented Jan 30, 2019 at 16:55

3 Answers 3

26

I'm not really sure what you're asking. wxPython and pyQt / pyside are probably the easiest to use on all platforms and will look right on most Operating systems. I know wxPython is specifically designed to wrap the native widgets so if you want your app to look native, I think wxPython is the way to go. If you want to be able to theme/skin your app, then PyQT or pyGTK may be better.

PyQt/PySide supports mobile to some degree, which I don't believe the other two do. If you plan to program for mobile, then you might want to go that route or look at Kivy.

PyQt/PySide have a pretty powerful WYSIWYG editor. wxPython has a couple, but I don't think any of them support all of wx's widgets and their support is spotty. That hasn't stopped me as I do all my coding by hand anyway.

As usual, you'll probably need to read lots of documentation and try each of them to see which one fits your brain and meets your needs best.

2
  • Hey, thanks for your answer, if it's not too much trouble could you link to the resource where it says wxPython wrap native widgets, please. Commented Oct 20, 2018 at 19:37
  • I think a lot can be said in terms of speed, variety of widgets, bidirectional support, etc...
    – elig
    Commented Jan 30, 2019 at 16:53
15

Don't use PyGTK if you want cross platform compatibility. GTK3 doesn't work on windows yet (last I checked) and GTK2 has an awful memory leak under windows which has been fixed in the latest source, but no new release has been compiled for windows.

I would put my vote with PySide (more flexible license for commercial options) over PyQt and PySide/PyQt over wxPython simply because I think the GUI designer tool are better! Being able to rapidly create and edit the GUI graphically (and independently of your applications code) is a huge time-saver.


Update: Actually, I'd recommend PyQt over PySide now for stability reasons and long term support. PySide development is lagging, there are very few people fixing bugs and no-one working on support for Qt 5.

1
15

PyQT in Windows

PyQT in Windows

PyGTK

PyGTK

PyQT in KDE

PyQT in KDE

  1. PyQT in Windows
  2. PyGTK+3
  3. PyQT in KDE

So if you go with PyQT the design of your application will look different on the different operating systems and desktop environments. I don't have Macintosh so cannot provide a picture how will look my application in it. This is one of my applications written in PyQT and PyGTK+3. Keep in mind that the design will stay as is with PyGTK+3, so there won't be any differences as they are in PyQT. It's definitely the most easiest to learn, as there is a Glade program which will help you to build your design without spending even a minute coding it manually. But with PyQT you can fine tune the application design and it won't make you tear your hair from bugs.

1
  • When UI looks depend on OS look and feel theme, this kind of UI is: using OS native Look and Feel. :)
    – user1630938
    Commented Mar 1, 2014 at 19:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.