I can disable the calendar widget with the 'Disable' button, but if I want to reactivate it, I get the following error:
tkinter.TclError: unknown option "-normal"
If i try to use the calendar.config(state="normal")
command, I get the following error:
tkinter.TclError: unknown option "-state"
import tkinter as tk
import ttkbootstrap as ttk
def disable_calendar():
calend["state"]="disabled"
def enable_calendar():
calend["state"]="normal"
root = ttk.Window()
root.geometry("400x400")
calend = ttk.DateEntry(bootstyle="primary")
calend.place(x=10, y=10)
disableCalendar_button = ttk.Button(text = "Disable", width=10, command=disable_calendar)
disableCalendar_button.place(x=10, y=50)
enableCalendar_button = ttk.Button(text = "Enable", width=10, command=enable_calendar)
enableCalendar_button.place(x=100, y=50)
root.mainloop()