So I am trying to Trace a variable to invoke a callback everytime it changes, however, the trace function always triggers. What's the problem? Here is my code:
options = ["Today", "History", "Options"]
chosen = StringVar(window)
chosen.set(options[0])
menu = OptionMenu(window, chosen, *options)
chosen.trace("w", update_gui())
Edit: this is not a dupplicate, the other question doesn't answer mine