Lines Matching refs:firstweekday
132 def __init__(self, firstweekday=0): argument
133 self.firstweekday = firstweekday # 0 = Monday, 6 = Sunday
138 def setfirstweekday(self, firstweekday): argument
139 self._firstweekday = firstweekday
141 firstweekday = property(getfirstweekday, setfirstweekday) variable in Calendar
148 for i in range(self.firstweekday, self.firstweekday + 7):
159 days = (date.weekday() - self.firstweekday) % 7
169 if date.month != month and date.weekday() == self.firstweekday:
177 for i, d in enumerate(self.itermonthdays(year, month), self.firstweekday):
186 days_before = (day1 - self.firstweekday) % 7
191 days_after = (self.firstweekday - day1 - ndays) % 7
510 def __init__(self, firstweekday=0, locale=None): argument
511 TextCalendar.__init__(self, firstweekday)
544 def __init__(self, firstweekday=0, locale=None): argument
545 HTMLCalendar.__init__(self, firstweekday)
570 firstweekday = c.getfirstweekday variable
572 def setfirstweekday(firstweekday): argument
574 firstweekday.__index__
576 raise IllegalWeekdayError(firstweekday)
577 if not MONDAY <= firstweekday <= SUNDAY:
578 raise IllegalWeekdayError(firstweekday)
579 c.firstweekday = firstweekday