Beispiel #1
0
 def start_task_manager(self, task):
     """Takes information from GUI, instantiates a task manager, and runs appropriate task"""
     file = self.text_input[0].get()
     user = self.text_input[1].get()
     doc = self.text_input[2].get()
     manager = TaskManager(file, doc, user)
     manager.run(task)
def main():
    """Entry point. Gets user input, runs GUI or task manager depending on the input"""
    user_input = UserInput()
    if user_input.gui_flag:
        g = Gui(user_input.get_file(), user_input.get_docid(),
                user_input.get_userid())
        g.run()
    else:
        manager = TaskManager(user_input.get_file(), user_input.get_docid(),
                              user_input.get_userid())
        task = user_input.task
        manager.run(task)