def run(self): monthDb.load() self.updateWidget() self.treev.grab_focus() gtk.Dialog.run(self)
def resetToDefaults(self, widget): if isfile(monthDb.userDbPath): os.remove(monthDb.userDbPath) monthDb.load() self.updateWidget() return True