【问题标题】:Remove image from treectrl items从 treectrl 项目中删除图像
【发布时间】:2013-04-06 22:11:27
【问题描述】:

我使用tree.SetItemImage 将图像添加到 wxpython treectrl 项目。稍后将删除图像。我该怎么做?我只找到了SetItemImage 方法,我没有找到类似RemoveItemImage 的东西。

【问题讨论】:

    标签: image wxpython treecontrol


    【解决方案1】:

    不是很明显,但是你可以通过调用SetItemImage 并传递-1 作为图像参数来删除项目的图像

    tree.SetItemImage(node, -1)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-09-27
      • 1970-01-01
      • 2020-02-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多