Home | History | Annotate | Download | only in ttk

Lines Matching defs:Calendar

2 Simple calendar using ttk Treeview together with calendar and datetime
5 import calendar
11 # instantiate proper calendar class
13 return calendar.TextCalendar(fwday)
15 return calendar.LocaleTextCalendar(fwday, locale)
17 class Calendar(ttk.Frame):
20 datetime = calendar.datetime.datetime
21 timedelta = calendar.datetime.timedelta
31 fwday = kw.pop('firstweekday', calendar.MONDAY)
47 self.__config_calendar() # adjust calendar columns and setup tags
54 # insert dates in the currently empty calendar
96 # the calendar
140 # update calendar shown dates
162 """Clicked somewhere in the calendar."""
180 if not bbox: # calendar not visible yet
189 """Updated calendar to show the previous month."""
194 self._build_calendar() # reconstruct calendar
197 """Update calendar to show the next month."""
202 days=calendar.monthrange(year, month)[1] + 1)
204 self._build_calendar() # reconstruct calendar
220 root.title('Ttk Calendar')
221 ttkcal = Calendar(firstweekday=calendar.SUNDAY)