Installation of Wxpython (Windows)

Source: Internet
Author: User
Tags windows x64

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.