I. Introduction of Wxpython
1,Wxpython is a set of excellent GUI graphics library in Python language. Wxpython can easily create a complete GUI user interface with full function keys . Wxpython is provided to the user as an excellent cross-platform GUI library wxwidgets python package and python module.
2,Wxpython is a cross-platform, can not modify the program in the case of a variety of platforms to run. The platforms currently supported are Win32/win64,Mac OS x, and most UNIX systems.
Two
https://www.wxpython.org/pages/downloads/
Click the link to jump to the Resources List page and select the corresponding Python version and operating system version (Python3.6 Windows X64 corresponds to CP36-WIN_AMD64):
Third, installation
After the download is complete, the. WHL file copies the files to the Python installation directory/scripts folder:
Run the following command under the/scripts folder:pip install WXPYTHON-4.0.0B2-CP36-CP36M-WIN_AMD64.WHL
* Note: The PIP command is installed when the Python environment is installed, and the PIP module must be installed separately if the command does not exist
The results of the operation are as follows: Wxpython has been successfully installed
Iv. Testing
After the installation is complete, test the code as follows:
Import WX #导入wx包 app = wx. APP () #创建应用程序对象 win = wx. Frame (none,-1, ' Python ') #创建窗体 btn = wx. Button (win, label = ' BUTTON ') #创建Button win. Show () #显示窗体 app. Mainloop () #运行程序
Operating effect:
Do something ... Written by Leapfrogg
Installation of Wxpython (Windows)