wxpython的demo使用
2018-04-25 本文已影响0人
hawk5555
在网络上百度一下,竟然都是几年以前的介绍。
在https://pypi.org/project/wxPython/4.0.1/上可以下载对应版本的wxpython
我用的是windows,64位的。
一、先下载wxpython,具体如下图:
二、下载对应版本的demo文件
2.png 3.png 4.png
三、加压缩demo文件
里边有一个readme.txt文件,具体如下:
·wxPython Demo and Samples
=========================
This archive contains a copy of the wxPython Phoenix demo, and also a
collection of small sample applications.
Once you have installed wxPython Phoenix you can run the demo by launching it
from a command line like this::
cd demo
python demo.py
Each of the folders in the samples folder contains one or more standalone
applications demonstrating how to use certain features of wxPython.
Examine
the source code in each sample folder to see how to run them and what they do.
注意一下,如果要使用demo,操作步骤2步:
1、就是在cmd命令行,先用cd语句切换到demo文件夹所在的路径;
2、cmd命令行: python demo.py
image.png