Getting the choice of optionmenu right after selection Python
问题 I was wondering if there is any way for me to see what the User has selected among the list displaying, let's say: ["Apple","Orange","Grapes"] right after they select either one of them? Like when user clicks the optionbox, and clicks Apple, Tkinter will return something then if he switches his selection to, let's say, Orange, then that will also return something on the spot. Thanks! How to put parameter correctly? from Tkinter import * def option_changed(a): print "the user chose the value {