【发布时间】:2020-06-11 15:46:35
【问题描述】:
I have a button, which I want to be set to "disabled" state, when 0 or more than 2 rows of ttk.treeview are selected, and set to "normal" state othervise.我应该使用什么方法或功能?
【问题讨论】:
标签: python button tkinter treeview
I have a button, which I want to be set to "disabled" state, when 0 or more than 2 rows of ttk.treeview are selected, and set to "normal" state othervise.我应该使用什么方法或功能?
【问题讨论】:
标签: python button tkinter treeview
每次在 Treeview 小部件中进行选择时,都会触发事件 <<TreeviewSelect>>。你可以绑定到那个事件,并在绑定函数中做任何你想做的事情。
【讨论】: