Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ex1 = StringVar(root)
- ex1.set("Pick Option")
- box = OptionMenu(root, "one","two","three", command=self.choice)
- def choice(self,option):
- return choice
- print choice
- global foo
- foo = ""
- def choice(self,option):
- foo = option
- return foo
Add Comment
Please, Sign In to add comment