Exemplo n.º 1
0
def add_task_tomorrow_submit(entry_list, window):
    global date_entry

    reponse = messagebox.showinfo("Successfully Added",
                                  "The tasks are added successfully!")

    tasks_list_by_subject = []
    for entry in entry_list:
        tasks_list = entry.get().split(",")
        tasks_list_by_subject.append(tasks_list)
    Task.add_to_tomorrow(date_entry.get(), tasks_list_by_subject,
                         "ToDoList.txt")

    window.destroy()