Skip to content

Calendar selection position issue for January 2023, dates not correctly greyed out #98

@photodude

Description

@photodude

Calendar has a selection position issue for January 2023. Wherever you click your selection visually ends up being one row below. Selection works correctly for December 2022.

win 10
Using tkcalendar 1.6.1
with anaconda install
python 3.9.15
tk 8.6.12
self.cal=Calendar(root, selectmode='day', firstweekday='sunday', mindate=earliest_date, maxdate=datetime.now())

Images show more dates available even though "maxdate" is set to now (2023-01-04 09:52:08.369092), when you click January 4th visually shows January 11th selected. or the 11th (which should be grey out and shouldn't be available to select) shows the 18th as a white box one row below.

Last image shows 2022 where the 28th was clicked and correctly selected.

offset selection, clicked 11 selection shows 18
offset selection clicked 4 visually shows 11
2022 correct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions