to bind a command to the Configure event, like this:bind .canvas <Configure> { puts "%W is now %w %h" }