def set_text(self, day, text): if Day.is_valid(day, self.number, self.year): self.days[day - 1].set_text(text)
def set_text(self, day, month, text): if Day.is_valid(day, month, self.year): self.months[month - 1].days[day - 1].set_text(text)