j4321 / tkcalendar

Calendar widget for Tkinter
https://pypi.python.org/pypi/tkcalendar
GNU General Public License v3.0
97 stars 33 forks source link

Calendar mindate not updating after the state is normal. #91

Open JahidFariz opened 2 years ago

JahidFariz commented 2 years ago

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()