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

python界面

时间:2016-11-11 01:09:47      阅读:233      评论:0      收藏:0      [点我收藏+]

标签:ubi   user   word   dir   imp   button   9.png   ima   password   

 1 import easygui as g
 2 import sys
 3 
 4 while 1:
 5         g.msgbox("我一定要学会编程!","加油!")
 6         #choices = [‘愿意‘, ‘不愿意‘, ‘有钱的时候愿意‘]
 7         #g.choicebox(‘你愿意购买资源打包支持小甲鱼吗?‘, choices = choices)
 8 
 9         g.buttonbox("刷个",image="doubi.gif",choices=("","","不帅"))
10         
11         if g.ccbox("继续",choices=("","不要")): 
12                 pass  # user chose Continue
13         else:
14                 sys.exit(0)     # user chose Cancel

技术分享

技术分享

技术分享

 1 import easygui as g
 2 import sys
 3 
 4 while 1:
 5         g.msgbox("我一定要学会编程!","加油!")
 6         #choices = [‘愿意‘, ‘不愿意‘, ‘有钱的时候愿意‘]
 7         #g.choicebox(‘你愿意购买资源打包支持小甲鱼吗?‘, choices = choices)
 8 
 9         #g.buttonbox("刷个",image="doubi.gif",choices=("帅","衰","不帅"))
10         str=g.enterbox()
11         if g.ccbox(str,choices=("","不要")): 
12                 pass  # user chose Continue
13         else:
14                 sys.exit(0)     # user chose Cancel

技术分享

技术分享

 1 import easygui as g
 2 import sys
 3 
 4 while 1:
 5         g.multpasswordbox("请输入")
 6         #g.msgbox("我一定要学会编程!","加油!")
 7         g.textbox(text="nihao",codebox=1)
 8         g.fileopenbox()
 9         #g.diropenbox()
10         g.multpasswordbox("请输入")
11         #choices = [‘愿意‘, ‘不愿意‘, ‘有钱的时候愿意‘]
12         #g.choicebox(‘你愿意购买资源打包支持小甲鱼吗?‘, choices = choices)
13 
14         #g.buttonbox("刷个",image="doubi.gif",choices=("帅","衰","不帅"))
15         str=g.enterbox()
16         if g.ccbox(str,choices=("","不要")): 
17                 pass  # user chose Continue
18         else:
19                 sys.exit(0)     # user chose Cancel

 

python界面

标签:ubi   user   word   dir   imp   button   9.png   ima   password   

原文地址:http://www.cnblogs.com/13224ACMer/p/6052851.html

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