Guest User

Untitled

a guest
Feb 23rd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. ex1 = StringVar(root)
  2. ex1.set("Pick Option")
  3. box = OptionMenu(root, "one","two","three", command=self.choice)
  4.  
  5. def choice(self,option):
  6. return choice
  7.  
  8. print choice
  9.  
  10. global foo
  11. foo = ""
  12.  
  13. def choice(self,option):
  14. foo = option
  15. return foo
Add Comment
Please, Sign In to add comment