Version 4 of widget::calendar

Updated 2009-09-25 19:09:41 by hae

See: http://docs.activestate.com/activetcl/8.5/tklib/widget/widget_calendar.html

Questions/Remarks

  • Is it possible to "drive" this widget without using a mouse? I didn't see any key bindings...
    • LV I do not see any bind commands in the code for keyboard shortcuts
    • hae 2009-09-25 bindings in progress
  • Did a few tests with -textvariable. The coupling didn't seem to work (changes in the var are not reflected and vice versa)...?
    • I tried the following:
$ 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.

See also tklib and widget.