Register callback to be called when the variable is accessed according to mode. mode is one of the strings 'array', 'read', 'write' or 'unset', or a list or tuple of such strings.
tkinter/Variable.trace_add
Variable.trace_add