|
发表于 2018-7-31 22:46:53
|
显示全部楼层
import easygui as g
import sys
choices = ['愿意', '不愿意', '有钱的时候愿意']
if g.ccbox('小甲鱼问券调查', title='标题', choices=('确定', '退出'), image='turtle.gif'):
reply = g.choicebox('你愿意购买资源打包支持小甲鱼吗?', choices = choices)
g.msgbox('你的选择是:' + str(reply), ok_button='加油!')
reply = g.choicebox('选一个',title='choicebox', choices = ('a', 'b', 'c', 'multchoicebox'))
g.msgbox('你的选择是:' + str(reply), ok_button='加油!')
reply = g.multchoicebox('选多个',title='multchoice', choices = ('a', 'b', 'c', 'd'))
g.msgbox('你的选择是:' + str(reply), ok_button='加油!')
else:
bb_ret = g.buttonbox(msg='buttonbox', title='buttonbox_title', choices=('b1', 'b2', 'indexbox'))
if bb_ret == 'indexbox':
bb_ret = g.indexbox(msg='indexbox', title='buttonbox_title', choices=('0', '1', '2'))
if bb_ret == 0:
bb_ret = g.boolbox(msg='boolbox', choices=('Yes', 'No'))
g.msgbox('你的选择是:'+ str(bb_ret), ok_button='再见')
sys.exit(0)
|
|