from easygui import *
text = "选择您所在的省/市"
title = "所在省/市"
# 选项
choices = ["北京", "上海", "广东", "香港"]
def cb(v):
print(v.choices)
v.stop()
# 创建一个choicebox
output = choicebox(text,title, choices=choices,callback=cb)
# 信息提示框标题
title = "Message Box"
# 信息
message = "您选择了:" + str(output)
# 用信息提示框显示用户的选择
msg = msgbox(message, title)