editor_panel.py 文件源码

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

项目:pw_Houdini_VEX_Editor 作者: paulwinex 项目源码 文件源码
def theme_menu(self):
        actions = self.menuTheme.actions()
        for i in actions[2:]:
            self.menuTheme.removeAction(i)

        path = os.path.join(os.path.dirname(__file__), 'colors').replace('\\','/')
        files = glob.glob1(path, '*.json')
        for f in files:
            full = os.path.join(path, f).replace('\\','/')
            d = json.load(open(full))
            a = QAction(d['name'], self, triggered=lambda f=d['name']:self.set_theme(f))
            self.menuTheme.addAction(a)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号