Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将图像添加到 wxpython treectrl 项目中tree.SetItemImage。稍后将删除图像。我该怎么做?我只找到了SetItemImage方法,我没有找到类似RemoveItemImage.
tree.SetItemImage
SetItemImage
RemoveItemImage
不是很明显,但是可以通过为image参数调用SetItemImage和传递来移除item的图片-1
-1
tree.SetItemImage(node, -1)