Python GUI

Duplicate:

Cross platform gui toolkit for deploying Python applications

I want to create a GUI application in python. Which library is best?

+4
source share
6 answers

From the question Cross-platform gui toolkit for deploying Python applications :

Pyqt

It is built on top of the Qt , C ++ framework. It is quite advanced and has some good tools like Qt Designer for developing your applications. You should know that this is not like Python 100%, but next to it.

This structure is really good. It is actively developed by Trolltech, which is owned by Nokia. Binding for Python developed by Riverbank.

Nokia has announced that they will start using LGPL to launch Qt-Framework with Qt 4.5 (coming out in April, I think), but he is not sure yet that Riverbank is following this and is releasing Python bindings for LGPL too. (They have a commercial and GPL license at the moment.)

Qt is not only a GUI structure, but many other classes can also be created by simply using Qt classes. (Like SQL, networking ...)

Qt does not use its own GUI elements, but Wikipedia mentions that in recent versions of Qt uses its own widgets , where possible. I did not find evidence in the documentation, but for Mac OS X.

wxPython

wxPython is a binding for Python using wxWidgets -Framework. This structure is under the LGPL license and is developed by the community of sources.

What I really miss is a good tool for developing an interface, they have about 3, but none of them are applicable.

One thing I should mention is that I found a tab error, despite the fact that I did not use advanced. (Mac OS X only) I think wxWidgets is not as polished as Qt .

wxPython is really just about GUI classes, there aren't many.

wxWidgets uses its own GUI elements.

Other

I have no experience with other GUIs, maybe someone else has.

+8
source

wxWidgets (a Python flavor called wxPython ) is currently your best IMHO option, they have support for multiple platforms (Mac, Window, Linux), and the framework is very easy to work with.

From the site :

wxWidgets allows developers to create applications for Win32, Mac OS X, GTK +, X11, Motif, WinCE and others, using one code base. It can be used in languages ​​such as C ++, Python, Perl, and C # /. NET Unlike other cross-platform toolkits, wxWidgets look and feel like native ones. This is due to the fact that wxWidgets uses its own platform management tools, rather than mimicking them. He is also extensive, free, open source and mature. Why not try for example

+5
source

I like PyQt . wxPython has many warts, and the code you write in PyQt is often much cleaner. The interface designer is also very useful.

+3
source

For general purpose GUI applications, I would recommend wxPython . This is a python flavor of the wxWidgets project. It’s easy to work with cross-platform, fully functional, and the demo is actually a great tutorial.

For game GUIs, I would go with pyGame . It is also very simple and powerful: you can program a small game in minutes.

+1
source

I would recommend wxPython to you.

0
source

Tkinter plain.

0
source

All Articles