更新时间:2023-11-29 08:38:58
只需循环遍历您的列表:
Simply loop over your list:
for button in btnList:
button.configure(state='disabled')
button
将从您的列表中依次分配每个按钮,让您在其上调用 configure()
方法.
button
will be assigned each button from your list in turn letting you call the configure()
method on it.