DateEntry¶
Class¶
-
class
tkcalendar.DateEntry(master=None, **kw)[source]¶ Bases:
tkinter.ttk.EntryDate 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.Entryoptions:class, cursor, style, takefocus, xscrollcommand, exportselection, justify, show, state, textvariable, width.
Calendaroptions: see the documentation.
-
config(**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.
-
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.