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)
评论列表
文章目录