def set_icon_for_theme(filename):
'''sets an icon for an existing theme'''
iconpath = filename.replace(".theme", ".jpg")
dialog = xbmcgui.Dialog()
custom_thumbnail = dialog.browse(2, xbmc.getLocalizedString(1030), 'files')
if custom_thumbnail:
xbmcvfs.delete(iconpath)
xbmcvfs.copy(custom_thumbnail, iconpath)
colorthemes.py 文件源码
python
阅读 24
收藏 0
点赞 0
评论 0
评论列表
文章目录