tkcalendar icon indicating copy to clipboard operation
tkcalendar copied to clipboard

Calendar mindate not updating after the state is normal.

Open JahidFariz opened this issue 2 years ago • 0 comments

Sample buggy code: tkcalendar v1.6.1

from datetime import date, datetime
from tkinter import Tk

from tkcalendar import Calendar

today = datetime.now()

app = Tk()

cal = Calendar(
    master=app,
    showweeknumbers=False,
    showothermonthdays=False,
    mindate=date(year=today.year, month=today.month, day=today.day),
    year=today.year,
    month=today.month,
    background="#2A3459",
    selectbackground="#2A3459",
    cursor="hand2",
    state="disabled"
)
cal.pack()
cal.config(state="normal")

app.mainloop()

JahidFariz avatar Aug 11 '22 10:08 JahidFariz