Typically the xScrollCommand option consists of the path name of a scrollbar widget followed by ``set'', e.g. ``.x.scrollbar set''. This will cause the scrollbar to be updated whenever the view in the window changes.
If this option is set to the empty string (the default), then no command will be executed.
if {[pathName instate stateSpec]} script
set changes [pathName state spec] pathName state $changes
A state specification or stateSpec is a list of state names, optionally prefixed with an exclamation point (!) indicating that the bit is off.
set b [ttk::button .b] # Disable the widget: $b state disabled # Invoke the widget only if it is currently pressed and enabled: $b instate {pressed !disabled} { .b invoke } # Reenable widget: $b state !disabled