def menu_overrideTheme(self):
""" callback for save menu item """
if self.themePath == "":
self.menu_saveThemeAs()
return
themebase, themename = os.path.split(self.themePath)
if not tkMessageBox.askyesno(title='Save theme', message='Overwrite existing theme "%s"?'%themename):
return
self.saveTheme(self.themePath)
评论列表
文章目录