from gui import *
-ACTION_LIST_KEYS_AND_MENU = Configuration(os.path.join(gtd_directory,"actions.cfg"))
+ACTION_LIST_KEYS_AND_MENU = Configuration(os.path.join(gtd_directory,"actions.cfg"), default_actions_menu)
def ask_for_action(project_name,proposition=None):
def __init__(self,project):
self.project = project
self.project.observers.append(self)
- super(ProjectView, self).__init__(self.project.name, [lambda:self.project.actions.with_property(lambda a:a.status==action.active)])
+ super(ProjectView, self).__init__()
self.set_keybindings(ACTION_LIST_KEYS_AND_MENU)
+ self.set_title(self.project.name)
+ self.set_filters([lambda:self.project.actions.with_property(lambda a:a.status==action.active)])
def exit(self):
self.project.observers.remove(self)