I am a novice, want to develop a bit more, now the Python UI seems to have a lot of libraries, which UI development is better? Pyqt,pygtk,wxpython,tkinter, add, I'm under Linux.
Reply content:
Python itself has a beautiful syntax, but it's ugly when it's in the GUI.
WxPython PYQT to describe the GUI in a way that is not graceful enough.
And you have a very awkward question, do you want to learn a tool that you simply can't control?
You've spent money on this wxPython in Action, and you've learned your skills. That's good. Here comes the Py3. The community is not updated. Even when the project author hangs up, see web.py, what do you do? Although there will certainly be Daniel to take over, but efficiency?
you are not learning GUI programming in nature, but learning how to use tools.
That is to say, you learn these GUI, basically binds oneself to above. Python's biggest criticism is that Python always relies on other libraries to expand, without a complete sense of independence. It doesn't matter if you can do Java that way, independent or independent.
Therefore, I personally suggest that in this is not the desktop for the king of the era. Buy a HTML5 book, build a local server with a Python web framework. Although it is troublesome to learn HTML5, it is much easier to label the HTML design than to use the desktop's various GUI description languages. You don't need to manage memory at all, and you don't need to worry about asynchronous processing. Pave the way for the next line.
Python can do a bit of anything, but there are alternatives to everything. It is necessary to play the advantages of Python, the integration of resources Ah! Give the GUI rendering to the browser. Hand over the logical processing to Python.
The Python+html5+js+python framework uses experience and is also good for the future.
What you need to do is to write a template and then use the framework to show it. After using Pygtk,pyqt,wxpython, it is highly recommended that Tkinter be the original Eco UI interface on every system, Python comes with a library that does not require additional installation and is simple to use.
Create a complex GUI under Ps:linux I still recommend using QT C + +, which makes it easier to interact with the underlying driver while maintaining operational efficiency while plain C's GTK is a bit cumbersome. As a scripting language, Python does not have to use it for complex interfaces, but more for system management, numerical computing, and Web backend. Preferred Tkinter, TK itself is developed for fast GUI development and has matured over the years, and Tkiner is the de facto standard GUI library built into Python.
Next, we recommend gtk+3 python binding pygobject.
I suggest using Django to build the GUI directly, and then using Bootrap+javascript on the front end.
Rest assured, Django can directly invoke the Python module, saying, my graduation design is probably this architecture, very convenient, very clear!
I think the standard library comes with Tkinter is good, I mainly use under OS X, feel pretty. Python 2.7 Adds a few more common UI components to the TTK package (Python3 for the TKINTER.TTK package), as long as it's not too complicated to write a UI. Don't make the UI under Linux .... Pure toss, it is recommended to script and web-based.
Python UI is very slow I saw someone else with PYQT did a freezing point music player pretty good, you can Baidu find, really good, no more than other language development GUI poor, but the difficulty and the quality of art is certainly higher than the normal level. I personally also study this, the direction of personal learning is to learn some of the infiltration of Python, leisure time will write some Notepad or notes, such as small tools, so just need to simple GUI, think since Python pyqt or wxpython, want to simply do GUI is not good looking, It is better to learn one of the simplest tkinter, easy to use, and cross-platform, generally write their own gadgets do not need too good-looking interface. It's an old question. Here's a discussion that you can refer to and turn over the wall
https:// Groups.google.com/forum /?hl=zh-cn#!topic/python-cn/ls5pgku1o-g
Since it is limited to the Linux environment, PYGTK must be recommended. GTK is very mature in the GNOME environment, and many programs are PYTHON+PYGTK. Using Glade to do the UI and then calling the. glade file in Python is a development pattern similar to Wxpython. It is also recommended to start learning directly from GTK3. The GTK3 import module is from gi.repository import Gtk, and GTK2 is significantly different.
I first write graphics program is used in Linux Python+wxpython, with good, fancy is cross-platform. However, if you do not consider cross-platform or recommended use of PYGTK. WxPython, cross-platform. PYQT is a little more complicated. Recommended Wxpython.