edit.py 文件源码

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

项目:Circadia 作者: hooyah 项目源码 文件源码
def menu_saveThemeAs(self):
        """ callback for saveAs menu item """

        newTheme = tkFileDialog.askdirectory(mustexist=True, initialdir=self.themeRootPath, title='Open Theme')
        if newTheme and os.path.isdir(newTheme):
            if os.path.isfile(newTheme+os.path.sep+'theme.json'):
                if not tkMessageBox.askyesno(title='Save theme', message='Theme exists. Overwrite?'):
                    return
            self.saveTheme(newTheme)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号