When a menu command or a button reflects a variable, there is currently no way to connect it directly to a Scheme variable. Instead, there are Tcl variables you can access as follows:
For establishing a connection, use the function (tk-var varname).
For reading, use (get-tk-var varname).
For setting the value, use (set-tk-var! varname value).