Home  >  Article  >  Backend Development  >  Can python be used as an interface?

Can python be used as an interface?

(*-*)浩
(*-*)浩Original
2019-06-12 15:57:267504browse

Since the birth of the Python language, many excellent GUI tool sets have been integrated into Python. These excellent GUI tool sets allow Python to also show its talents in the field of graphical interface programming. Due to the popularity of Python , many applications are written in Python combined with those excellent GUI tool sets. The various implementations of Python GUI programming are introduced below. Many of the following contents are from Wikipedia (references are listed at the end of the article). Let’s treat it here as a non-technical integration.

Can python be used as an interface?

##Tkinter (Recommended learning: Python video tutorial)

A brief introduction :

is the Tk GUI tool set bound to Python, which is the Tcl code wrapped by Python. It is implemented through the Tcl interpreter embedded in the Python interpreter. The call of Tkinter

is converted into Tcl commands are then handed over to the Tcl interpreter for interpretation to implement the Python GUI interface.

Compare the bindings between Tk and other languages, such as PerlTk, which is directly implemented by the C library in Tk.

Advantages:

The oldest, Python's de facto standard GUI, the standard interface for using the Tk GUI tool set in Python, has been included in the standard Python Windows installation

In the installation, the famous IDLE uses Tkinter to realize the creation of GUI. The GUI is simple, easy to learn and use.

wxPython

Brief introduction:

Python is a wrapper for the cross-platform GUI tool set wxWidgets (written in C), as an extension module of Python accomplish.

Advantages:

A relatively popular alternative to Tkinter that performs well on various platforms.

PyGTK

A brief introduction:

A series of Python packages for the GTK GUI library.

Advantages:

A more popular alternative to Tkinter. The GUIs of many famous applications under Gnome are implemented using PyGTK, such as BitTorrent, GIMP

and Gedit has an optional implementation, which seems to not perform well on the Windows platform. This is understandable, after all, it uses the GTK GUI library.

PyQt

A brief introduction:

Python’s packaging of the cross-platform GUI tool set Qt implements 440 classes and 6000 functions or methods ,PyQt is implemented as a plug-in for Python.

Advantages:

A relatively popular alternative to Tkinter, it is very powerful. You can use Qt to develop beautiful interfaces, and you can use PyQt to develop beautiful interfaces.

The cross-platform support is very good, but there seem to be some problems with commercial authorization.

PySide

A brief introduction:

Another Python wrapper for the cross-platform GUI tool set Qt, bundled in Python, originally developed by BoostC Library implementation and later migrated to Shiboken.

Advantages:

A more popular alternative to Tkinter, similar to the above. As for the difference between the two, here is an introduction.

For more Python related technical articles, please visit the

Python Tutorial column to learn!

The above is the detailed content of Can python be used as an interface?. 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