Introduction
GUI-implemented modules:
The Tkinter:tkinter module (TK interface) is the interface of the standard TK GUI Toolkit for Python. Tk and Tkinter can be used on most Unix platforms and can also be applied to Windows and Macintosh systems. Subsequent versions of Tk8.0 can be implemented in a local window style and run well on most platforms.
Wxpython:wxpython is an open-source software that is a good GUI graphics library in the Python language, allowing Python programmers to easily create complete, full-featured GUI user interfaces.
Jython:jython programs can be seamlessly integrated with Java. In addition to some standard modules, Jython uses Java modules. Jython has almost all the modules in standard Python that are not dependent on the C language. For example, the Jython user interface will use SWING,AWT or SWT. Jython can be dynamically or statically compiled into Java bytecode. 1, the realization of Tkinter
Tkinter is built in Python, so no additional installation is required.
#gui人机界面
import tkinter as TK
window=tk. Tk ()
window.title (' Rosefun ')
window.geometry (' 500x300 ')
entry=tk. Entry (window)
entry.pack ()
button=tk. Button (window,text= ' Resume ')
Button.pack ()
label=tk. Label (window,text= ' Hello World ')
label.pack ()
Window.mainloop ()
Seems to be on the Internet, to tkinter evaluation is not high Ah, want to learn pyqt.
Some other programming code, you can view GitHub Tkinter programming; 2, PYQT implementation
2.1 First Installation
Import PYQT5 to see if you have installed the PYQT, if not, download the installation:
PYQT download
2.2 Example
Import SYS from
PyQt5 import qtgui,qtwidgets,qtcore
app = Qtwidgets.qapplication (sys.argv)
label = Qtwidgets.qlabel ('
Reference:
1. Python-gui-tkinter;
2. GitHub Tkinter Programming;
3. PYQT Tutorial