Question: ... the other rows to have all their tags removed
Tkinter 8.5 reference - 45. ttk.Treeview
First, some definitions: item
One of the entities being displayed in the widget. For a file browser, an item might be either a directory or a file.
Each item is associated with a textual label, and may also be associated with an image. iid
Every item in the tree has a unique identifier string called the iid. You can supply the iid values yourself, or you can let ttk generate them.
循环
Treeview
以获取项的iid
条件:
'BadgeOfTheWeek'
为not in
电流item(iid)
tags
。在若要从此}
item(iid)
中删除所有tags
,请将tags=
设置为空list
或{使用Python:3.5-TkVersion:8.6测试
相关问题 更多 >
编程相关推荐