Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
choice box easygui
02-01-2010, 05:08 AM (This post was last modified: 02-01-2010 06:06 AM by codecaine.)
Post: #1
choice box easygui
Code:
from easygui import *

msg = "Choose your favorite color";

title = "Favorite Color";

chocies = ['red','blue','green','brown'];

choice = choicebox(msg,title,chocies);

#if choice is None user hit cancel
if choice != None:
    msgbox("Your favorite color is " + choice,title);


Attached File(s)
.zip  choice.zip (Size: 19.08 KB / Downloads: 4)
Visit this user's website Find all posts by this user
Quote this message in a reply
02-01-2010, 03:58 PM
Post: #2
RE: choice box easygui
Very good choice box. Interesting how you define choices like set of in Pascal. Great work !

There's a fine line between genius and insanity. I have erased this line.
Oscar Levant
There's a fine line between an administrator and black hat hacker. I have erased this line.
Dr DEBCOL
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


 Quick Theme: