DateEntry¶
Class¶
-
class
tkcalendar.
DateEntry
(master=None, **kw)[source]¶ Bases:
tkinter.ttk.Entry
Date selection entry with drop-down calendar.
-
__init__
(master=None, **kw)[source]¶ Create an entry with a drop-down calendar to select a date.
When the entry looses focus, if the user input is not a valid date, the entry content is reset to the last valid date.
Keyword Options
ttk.Entry
options:class, cursor, style, takefocus, xscrollcommand, exportselection, justify, show, state, textvariable, width.
Calendar
options: see the documentation.The Calendar option cursor has been renamed calendar_cursor to avoid name clashes with the corresponding
ttk.Entry
option.
-
config
(cnf={}, **kw)¶ Configure resources of a widget.
The values for resources are specified as keyword arguments. To get an overview about the allowed keyword arguments call the method
keys()
.
-
configure
(cnf={}, **kw)[source]¶ Configure resources of a widget.
The values for resources are specified as keyword arguments. To get an overview about the allowed keyword arguments call the method
keys()
.
-
Virtual Events¶
A <<DateEntrySelected>>
event is generated each time the user selects a date.