原帖:http://blog.csdn.net/YABAJ/article/details/50674031
Python的第三方简单图形界面的GUI类库下载easygui-0.97.zip
官网下载:
安装:解压后将easygui.py拷贝进python安装目录下的Lib\site-packages文件夹下
-
-
import easygui
-
easygui.msgbox("hello,world!")
-
-
fruit = easygui.enterbox("What is your favorite fruit?")
-
easygui.msgbox("You entered:" + fruit)
-
-
fruit = easygui.buttonbox("What is your favorite fruit?", choices = ['abanana', 'peach', 'apple', 'pear'])
-
easygui.msgbox("You entered:" + fruit)
-
-
msg ="What is your favorite flavor?"
-
title = "Ice Cream Survey"
-
choices = ["Vanilla", "Chocolate", "Strawberry", "Rocky Road"]
-
choice = easygui.choicebox(msg, title, choices)
-
a = easygui.msgbox("You entered:" + choice)
阅读(827) | 评论(0) | 转发(0) |