Commit f8f6c8c4 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Associate Todo instance with the widget.

parent a1b35608
......@@ -18,9 +18,11 @@ import urwid
class TodoWidget(urwid.WidgetWrap):
def __init__(self, p_todo):
priority = p_todo.priority()
self.todo = p_todo
priority = self.todo.priority()
priority_text = u""
todo_text = p_todo.source()
todo_text = self.todo.source()
if priority:
priority_text = "({})".format(priority)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment