The code,
from Tkinter import *
master = Tk()
Label(master, text="Current Age: ").grid(row=0, column=0)
current = StringVar(master)
current.set("0")
coption = OptionMenu(master, current, *[str(i) for i in range(95)])
coption.grid(row=0,column=1)
Label(master, text="Target Age: ").grid(row=1, column=0)
target = StringVar(master)
target.set("0") # default deger
toption = OptionMenu(master, target, *[str(i) for i in range(95)])
toption.grid(row=1,column=1)
mainloop()
I have 2 comboboxes, one for current age, and one for target age. I want target age to contain only values that are above current age. Therefore, I think I need to register on change callback somehow. I searched the google, but it didn't help.