msgbox , choicebox , enterbox用法
# -*- coding: utf-8 -*-:
# -*- coding: cp936 -*-:
import easygui
user_response = easygui.msgbox("Hello There!")
print user_response
# -*- coding: utf-8 -*-:
# -*- coding: cp936 -*-:
import easygui
flavor = easygui.choicebox("What is you favorite ice cream flavor ?", choices = ['Vanilla','Chocolate','Strawbery'])
easygui.msgbox("you picked " + flavor)
# -*- coding: utf-8 -*-:
# -*- coding: cp936 -*-:
import easygui
flavor = easygui.enterbox("what is you favorite ice cream flavor ? ",default = 'Vanilla')
easygui.msgbox("you entered " + flavor)