def btn_delete_project(self): project = self.manager.app.project confirmbox = ConfirmBox(title='Delete project?', on_done=self.delete_project, ctx=[project]) confirmbox.open()
def btn_delete_category(self): project = self.manager.app.project category = self.manager.app.category confirmbox = ConfirmBox(title='Delete category and all tasks?', on_done=self.delete_category, ctx=[project, category]) confirmbox.open()
def btn_delete_task(self): project = self.manager.app.project category = self.manager.app.category task = self.manager.app.task confirmbox = ConfirmBox(title='Delete task?', on_done=self.delete_task, ctx=[project, category, task]) confirmbox.open()