See: http://docs.activestate.com/activetcl/8.5/tklib/widget/widget_calendar.html
Questions/Remarks
$ tclsh8.6 % package require widget::calendar 0.91 % set t [widget::calendar -textvariable ::a .t] unknown subcommand "-textvariable": namespace ::widget::calendar does not export any commands % set t [widget::calendar .t -textvariable ::a] .t % pack .t % set ::a 9/25/2009 9/25/2009 % puts $::a 09/21/2009 % puts $::a 09/26/2009 % set ::a 10/10/2010 10/10/2010 %
When I clicked on different days on the widget, $::a changed value. HOWEVER, as you noticed, when I change the text variable, the widget does not change. Sounds like time for a bug report.
hae 2009-09-25 Added traces to watch the changes of -textvariable. Grab the latest version from CVS.
MHo After teacup update I did a new test. The required trick is to give a ::globalvar with -textvariable. Otherwise it won't work. I still see no keyboard bindings, though...
hae 2009-10-22 This is not a trick. It is common with all widgets that have a -textvariable option. see entry