python界面
阿新 • • 發佈:2017-05-22
python
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 Continue13 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 Continue13 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 Continue18 else:19 sys.exit(0) # user chose Cancel
python界面