Disabling tkinter ttk scale widget
问题 I am trying to disable all of the (ttk) widgets in a frame, but it appears that the scale widget is giving me some trouble, as it throws the following exception: _tkinter.TclError: unknown option "-state" Some relevant code: import tkinter as tk from tkinter import ttk def disable_widgets(parent): for child in parent.winfo_children(): child.config(state = 'disabled') root = tk.Tk() # Frame full of widgets to toggle frame_of_widgets = ttk.Frame(root) frame_of_widgets.pack() # Button to be