I have a Tkinter GUI where there is a Scale object. I have a callback assigned (by the command constructor parameter) to perform an action when the user changes the scale position. However, there is also a case where the value represented by the scale is modified externally, and so I set the scale position using Scale.set(). In this case, I want to set the scale, but not trigger the callback, since the rest of the program already knows about the change. However, I notice that the callback is indeed triggered by set().
Is it possible to do one of:
Set the scale value without triggering the callback.
Differentiate in the callback whether it was triggered by user interaction or by
Scale.set()being called.
Thanks.