Python graphical user interface GUI authoring

Source: Internet
Author: User
Tags in python
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.