samedi 10 janvier 2015

If and else statements in easyGUI?

So i have a basic question: how to use if and else statements correctly with easyGUI? This is what I have:



import easygui

msg = "Oh i see m9, choos your difficulty"
title = "Mountain Dew Franchise"
choices = ["Pro 360 noscoper(+1001)", "Dank skrubl0rd(-666)"]
choice = easygui.ynbox(msg, title, choices)

# if choices==choices[0]:
easygui.msgbox("Good choos m20, let the skrubl0rd noscoping begin.")

# if choices==choices[1]:
easygui.msgbox("Oh i see m8.")


The # lines seem to be the problem area


It does not let me go to either msgbox, but instead just closes the program, any help would be appreciated. Thanks in advance :)


Aucun commentaire:

Enregistrer un commentaire