O'Reilly logo
  • You Wang thinks this is interesting:

Make sure you don't actually call your callback at this point—it should be self.on_change, not self.on_change(). The callback should be a reference to the function or method, not the output from it.


Cover of Python GUI Programming with Tkinter


Python will evaluate the expression, so don't use a function with brackets.