def CreateBitmap(self, artid, client, size):
if not artid.startswith('priv'):
return wx.NullBitmap
artid = artid.split('/')[1:] # Split path and remove 'priv'
artid = '/'.join(artid) # rejoin remaining parts
fpath = appconstants.getdatapath(artid)
return wx.Bitmap(fpath, wx.BITMAP_TYPE_ANY)
评论列表
文章目录