最终比较,选择pyqt用于GUI开发
https://pythonspot.com/en/gui/
图形化界面可以使用PyQt5, PyQt4, wxPython or Tk.模板
Graphical interfaces can be made using a module such as PyQt5, PyQt4, wxPython or Tk.
If you are not sure which to pick, read the Introduction to GUI.
PyQT5
Articles about the latest version of cross-platform toolkit.
- PyQt5 overview
- PyQt5 window
- PyQt5 buttons
- PyQt5 messagebox
- PyQt5 textbox
- PyQt5 menu
- PyQt5 table
- PyQt5 tabs
- PyQt5 horizontal layout
- PyQt5 grid layout
- PyQt5 input dialogs
- PyQt5 file dialogs
- PyQt5 load image
PyQT4 / QT
A popular cross-platform toolkit developed by Riverbank Computing.
- QT4 Window
- QT4 Buttons
- QT4 Messagebox
- QT4 Menu
- QT4 Widgets
- QT4 Textbox
- QT4 Tables
- QT4 Tabs
- QT4 Progressbar
- QT4 Pixmaps (Images)
- QT4 Open File Dialog
- QT4: Build an application (beginners tutorial)
- QT4: Creating a GUI with designer (pro tutorial)
Tkinter
The standard GUI package for Python.
WxPython, WxWidgets
A cross platform GUI toolkit.
GUI详细介绍
https://pythonspot.com/en/introduction-to-gui/
使用GUI,你需要利用第三方包或模块tkinter,pyqt,wxpython是非常出名的GUI包
tkinter是最老版本,跨平台,功能没有pyqt和wxpython多
pyqt拥有成千上万的widget。
wxpython可视化效果比pyqt更好
两个用的人都很多,运行速度方面两个差别感觉不是很大,开发上因为pyQt4是有商业的支持有eric4这种ide界面设计也方便。但pyqt4是不能用 在商业软件中的,有版权问题,要付费的,开源软件的话没这问题。开发效率都还可以,两个也都可以跨平台。在windows上用py2exe打包出来的东西 是wxpython要小一点。
PyQt和wxPython我都用过一点点,3D打印非常流行的切片软件Crua是用wxPython写的(https://github.com/hanxiaomax/Cura),之后学QT,就顺便学了下PyQt。感觉除了信号槽两者没太大区别,但是Qt designer真心好用,布局起来飞快。wxPython我也用过一些类似的工具,总之是很麻烦,可能也是我没有找到合适的? 其他的我就不懂了。
To create a graphical interface (GUI) in Python you need to make use of a library or module. There are at least three widely used modules for creating GUIs with Python:
While you can create a graphical user interface (GUI) with any of these modules, they do not have the same features.
Tk provides basic widgets such as a button, menu, text and label. It is very limited compared to QT4 and WxPython but it is also the oldest module. It runs on most versions of Mac OS, Linux and Windows.
a messagebox in Tk. GUIs made in Tk do not have a native look.
QT4 and QT5 are developed by the Qt company. Graphical applications made with QT4 or QT5 run on Windows, Linux/X11 and Mac OS X. It has tons of widgets including tabs, buttons, item views, table views, progressbars, input fields, calendar views and many more. Compared to Tk it has a lot more widgets available.
WxPython is a module that creates a native GUI look regardless of the operating system used. On Windows it will look as windows application while on Mac OS it will look as a Mac application. This can be a clear advantage compared to QT4 or Tk, depending on your purpose. WxWidgets has many widgets available such as buttons, menu, text but also more advanced widgets as a htmlview or tree control.
A window created with wxPython. wxPython has native appearance on all operating systems.