Lines Matching refs:firstweekday
154 def __init__(self, firstweekday=0): argument
155 self.firstweekday = firstweekday # 0 = Monday, 6 = Sunday
160 def setfirstweekday(self, firstweekday): argument
161 self._firstweekday = firstweekday
163 firstweekday = property(getfirstweekday, setfirstweekday) variable in Calendar
170 for i in range(self.firstweekday, self.firstweekday + 7):
188 days_before = (day1 - self.firstweekday) % 7
191 days_after = (self.firstweekday - day1 - ndays) % 7
199 for i, d in enumerate(self.itermonthdays(year, month), self.firstweekday):
208 days_before = (day1 - self.firstweekday) % 7
209 days_after = (self.firstweekday - day1 - ndays) % 7
226 yield y, m, d, (self.firstweekday + i) % 7
566 def __init__(self, firstweekday=0, locale=None): argument
567 TextCalendar.__init__(self, firstweekday)
596 def __init__(self, firstweekday=0, locale=None): argument
597 HTMLCalendar.__init__(self, firstweekday)
618 firstweekday = c.getfirstweekday variable
620 def setfirstweekday(firstweekday): argument
621 if not MONDAY <= firstweekday <= SUNDAY:
622 raise IllegalWeekdayError(firstweekday)
623 c.firstweekday = firstweekday