Can python write desktop programs?

(*-*)浩
Release: 2019-10-31 09:15:36
Original
7185 people have browsed it

In fact, Python/Java/PHP are not suitable for desktop development. Java still has several relatively mature products. For example, the famous Java integrated development environment IntelliJ IDEA and Eclipse are developed in Java, but PHP and Python There are no relatively mature desktop products.

Can python write desktop programs?

Although Python itself is not good at desktop development, Python and C integrate very well, and C is very good at desktop development. The power of Python It is precisely because Python and C integrate very well. Of course, Python and C/C can have a good connection. (Recommended learning: Python video tutorial)

PyQt

QT is currently a very successful desktop solution, and PyQt is a Qt library Python version, PyQt3 supports versions from Qt1 to Qt3, and PyQt4 supports Qt4.

The previous name was PyKDE. The early SIP and PyQt were not separated. It was first released in 1998. PyQt was written using SIP. PyQt has two versions: GPL open source version and commercial version.

Python graphics development package wxPython

wxPython is a relatively good GUI graphics development library in the Python language. You can easily create complete and sound functions. GUI graphical interface.

wxPython is implemented by encapsulating the open source cross-platform GUI graphical interface library wxWidgets and Pyhon modules. What is ultimately given to developers is a relatively mature graphical interface development kit.

wxPython, like Python and wxWidgets, is an open source software with strong cross-platform capabilities. It can run on 32-bit/64-bit Windows operating systems, Unix/Linux and macOS.

Tkinter

This is also a very mature solution. The Tk interface is the standard Python interface of the Tk graphical user interface toolkit. Tk is a cross-platform and It is also an extremely lightweight graphical interface development framework.

Tk can run on almost all Unix, Windows, and macOS platforms. Tkinter is composed of a certain number of modules. Tkinter is located in a binary module called _tkinter. Contains modules for low-level interfaces to Tk, but the low-level interface is not used directly by application developers. These are usually a shared DLL library, but can be statically linked by the Python interpreter.

In addition to the above three graphical interface development tools, Python also has other relatively mature graphical interface development tool libraries. kivy is also an open source toolkit, and it is a graphical interface that is highly valued in the field of innovation. The development library can create multi-touch applications and provide a multi-touch mouse simulator. It can currently be used on Linux, macOS, Windows, and Android.

The other is Flexx, which is a pure Python graphical interface development toolkit. It is mainly rendered through Web technology and can also get along well with HTML, so you only need Python and a browser for development.

But after all, python is not born for desktop development. Currently, the macOS platform for desktop development has Objective-C/Swift, the Windows platform has C#, and QT is the representative of C. The solution remains the most powerful desktop solution available. At the same time, Electron/Flutter/React Native will become the most important emerging desktop development solutions for mobile and PC in the future.

The above is the detailed content of Can python write desktop programs?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!