I. Introduction to wxPython
is an excellent set of GUI graphics libraries for the Python language. wxPython makes it easy to create complete, fully-featured GUI user interfaces . wxPython is provided as a Python1. wrapper for the excellent cross-platform GUI library wxWidgets and as a Python module .
is cross-platform and can run on multiple platforms without modifying the program. Currently supported platforms are Win32/Win64, Mac OS X and most Unix systems.
II. Installing wxPython
To use the GUI, you need to import the wxPython package, which is a mature and feature-rich package and a favorite of Guido van Rossum, the father of Python. The following section describes the installation of wxPython.
2. First of all, download the wxPython toolkit from the official website, you will get an installation file, just install it normally!
3. Download address:/
Third, test the success of an turn
1. Test after the installation is complete, the test code is as follows.
#coding:utf-8 #!/usr/bin/env python import wx # Import wx packages app = () # Create application objects win = (None,-1,'install test') #Creating Forms btn = (win, label = 'Button') #Creating a Button () #Display Forms ()
2. The first is to import the wx package, then create the application object, create the form, create the Button, display the form, and finally start the program.
3. The effect is shown below
summarize
The above is a small introduction to the installation and use of wxPython tutorials, I hope to help you, if you have any questions please leave me a message, I will promptly reply to you. Here also thank you very much for your support of my website!