标签:python
GUI工具包:EasyGui
import easygui as g
import sys
while 1:
g.msgbox("欢迎来到一个神奇的世界")
msg = "请问你想得到什么?"
title = "请选择"
choices = ["金钱", "时间", "生命", "未来"]
choice = g.choicebox(msg, title, choices)
g.msgbox("你的选择是:" + str(choice),"结果")
msg = "请问你想重新选择吗?"
title = "请选择"
if g.ccbox(msg, title):
pass
else:
sys.exit(0)
本文出自 “每天进步一点点” 博客,请务必保留此出处http://zuoshou.blog.51cto.com/2579903/1982840
标签:python
原文地址:http://zuoshou.blog.51cto.com/2579903/1982840