Home  >  Article  >  Backend Development  >  How to develop interface in python

How to develop interface in python

(*-*)浩
(*-*)浩Original
2019-08-02 11:42:523343browse

As a Pyhon developer, sooner or later you will encounter graphical user interface (GUI) application development tasks. At this time, we need some interface libraries to help us quickly build the interface. Python has many interface libraries. Here are just a few:

How to develop interface in python

1.tkinter (recommended learning: Python video tutorial)

Tkinter (also called Tk interface) is the standard Python interface of the Tk graphical user interface toolkit. Tk is a lightweight cross-platform graphical user interface (GUI) development tool. Tk and Tkinter can run on most Unix platforms, Windows, and Macintosh systems.

Tkinter consists of a certain number of modules. Tkinter resides in a binary module called _tkinter (earlier versions were called tkinter). Tkinter contains a low-level interface module to Tk. The low-level interface is not directly used by application-level programmers. It is usually a shared library (or DLL), but in some cases it is also statically linked by the Python interpreter.

2.pyqt

PyQt is the Python version of the Qt library. PyQt3 supports Qt1 to Qt3. PyQt4 supports Qt4. It was first released in 1998, but it was called PyKDE at the time because SIP and PyQt were not separated at the beginning. PyQt is written in SIP. PyQt is available in GPL and commercial versions.

3.wxpython

wxPython is an excellent GUI graphics library for the Python language, allowing Python programmers to easily create a complete GUI with full function keys. user interface. wxPython is provided to users as a Python package and Python module of the excellent cross-platform GUI library wxWidgets.

Just like Python and wxWidgets, wxPython is also an open source software and has excellent cross-platform capabilities. It can run on 32-bit windows, most Unix or Unix-like systems, and Macintosh OS X .

4.Kivy

This is a very interesting project, based on OpenGL ES 2, supporting native multi-touch on Android and iOS platforms as an event-driven framework , Kivy is perfect for game development and is perfect for handling tasks from widgets to animations. If you want to develop cross-platform graphics applications, or just need a powerful cross-platform graphics user development framework, Kivy is a good choice.

For more Python related technical articles, please visit the Python Tutorial column to learn!

The above is the detailed content of How to develop interface in python. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Why does python have tclNext article:Why does python have tcl