* Ralf Fassel <
[email protected]>
| The tklib::dateentry is a nice widget to select a date, and I can
| readily query the date via the 'get' method.
| However there currently is no convenient way to *set* the date (eg. at
| program start to the selection of the last run).
| I can use the methods of the entry, but this does not update the
| calendar display:
| package require widget::dateentry
| pack [widget::dateentry .d -dateformat %Y-%m-%d]
| .d configure -state normal
| .d delete 0 end
| .d insert end 2020-10-10
| .d configure -state readonly
| The dateentry now shows "2020-10-10", but when you open the calendar, it
| shows todays' month instead of October 2020.
| Using the -textvariable method is not reliable, it seems to be ignored
| or interfers with the internals of the widget.
| I would provide a patch to tklib, but I don't know snit well enough, so
| has anyone here a hint on how to provide the equivalent of 'dateentry::set' ?
https://core.tcl-lang.org/tklib/tktview/fcce9df1f41789d9e19570028dc5fb518d3bc280
R'
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)