diff --git a/tkcalendar/calendar_.py b/tkcalendar/calendar_.py index b3cecab..9b3b99f 100644 --- a/tkcalendar/calendar_.py +++ b/tkcalendar/calendar_.py @@ -963,6 +963,9 @@ def _get_day_coords(self, date): w += 1 if dn == 7: wn += 1 + if date.month == 1 and calendar.datetime.date(date.year,date.month,1).strftime("%A") == "Sunday": + w = int(date.strftime("%U")) - 1 + wn = 0 else: d -= 1 w -= wn