码迷,mamicode.com
首页 > 编程语言 > 详细

python图形界面编程

时间:2017-03-11 14:47:08      阅读:175      评论:0      收藏:0      [点我收藏+]

标签:sel   csharp   cbo   ice   sys   else   tutorial   gui   port   

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)

  

python图形界面编程

标签:sel   csharp   cbo   ice   sys   else   tutorial   gui   port   

原文地址:http://www.cnblogs.com/echoshao/p/6534889.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!