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.
-
config
(**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
(**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.