from pyfzf.pyfzf import FzfPrompt from model import Model from params import Params from screen import Screen class Config: def __init__(self): self.model = Model() self.params = Params() self.screen = Screen() self.fzf = FzfPrompt() self.info = '' def manage(self): active = 'off' if self.params.get('active'): active = 'on' self.info = 'Show current tasks: [' + active + ']\n' done = 'off' if self.params.get('done'): done = 'on' self.info += 'Show done tasks: [' + done + ']\n' self.manage_menu() def manage_menu(self): about = ''' Short instruction ----------------- ? - help (this dialog) ! - toggle active tasks v - toggle done tasks t - manage time slots # - backup/restore < - back q - exit ''' self.screen.change_path('~config', '?!vt#