echoshao

python图形界面编程

EasyGui(easygui-docs-0.96\tutorial\index.html)

import easygui as g
import sys

while 1:
    g.msgbox(\'mess1\')

    msg = \'ms2\'
    title = \'ms3\'
    choices = [\'a\',\'b\',\'c\',\'d\']

    choice = g.choicebox(msg, title, choices)

    g.msgbox(\'your choice is\'+str(choice),\'result\')

    msg = \'try again\'
    title = \'select\'

    if g.ccbox(msg, title):
        pass
    else:
        sys.exit(0)

  

posted on 2017-03-11 14:34  echoshao  阅读(221)  评论(0编辑  收藏  举报
 

分类:

技术点:

相关文章: