MainFrame.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:PancakeViewer 作者: forensicmatt 项目源码 文件源码
def LoadIconList(self):
        isz = (16, 16)
        self.tree_fs.icon_list = wx.ImageList(*isz)

        folder = wx.Icon(
            'icons/ic_folder_black_18dp.png',
            wx.BITMAP_TYPE_PNG,
            isz[0],
            isz[1],
        )
        folder_open = wx.Icon(
            'icons/ic_folder_open_black_18dp.png',
            wx.BITMAP_TYPE_PNG,
            isz[0],
            isz[1],
        )

        self.tree_fs.icon_fldridx = self.tree_fs.icon_list.AddIcon(folder)
        self.tree_fs.icon_fldropenidx = self.tree_fs.icon_list.AddIcon(folder_open)
        self.tree_fs.icon_fileidx = self.tree_fs.icon_list.AddIcon(wx.ArtProvider.GetIcon(wx.ART_NORMAL_FILE, wx.ART_OTHER, isz))

        self.tree_fs.SetImageList(self.tree_fs.icon_list)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号