samedi 30 avril 2016

EasyGUI How to define input in if loop

I was wondering how I could use input from a choicebox into a if loop. All help appreciated! e.g:

title = 'Title'
msg = 'Message'
choices = ['Choice1', 'Choice2']
decided = choicebox(title, msg, choices)

if decided == 'Choice1':
    print'Choice 1 is a choice that you have selected.'

Aucun commentaire:

Enregistrer un commentaire