def next_month(self):
"""Update calendar to show the next month."""
if self._selection_is_visible: self._clear_selection()
date = self.datetime(self._year, self._month, 1) + \
self.timedelta(days=calendar.monthrange(self._year, self._month)[1] + 1)
self._build_calendar(date.year, date.month) # reconstuct calendar
评论列表
文章目录