ttkbootstrap icon indicating copy to clipboard operation
ttkbootstrap copied to clipboard

Set DateEntry date after initialisation

Open dambicon opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe.

After the user has selected a date and the data has been captured I would like to be able to reset the date to the default startdate or any other date.

Describe the solution you'd like

I would like an option to set the date after creating the widget.

DateEntry_widget.config(setdate=date.today())

Describe alternatives you've considered

Since the widget is built of both an Entry and Button, then a DateEntry_widget.insert(0, date.today()) could also work, but that might open up for a floodgate of issues.

Could also allow for the 'startdate' keyword to be used after initialisation.

Additional context

No response

dambicon avatar Feb 13 '23 14:02 dambicon

+1 👍

Codename-11 avatar Dec 02 '23 00:12 Codename-11