Commit 678d5f23 authored by Jacek Sowiński's avatar Jacek Sowiński

Don't call not-callable urwid.Widget.keypress()

Fixes "not-callable" pylint errors.
parent b3f8fe36
......@@ -116,8 +116,7 @@ class TodoListWidget(urwid.LineBox):
elif p_key == 'g':
self.keystate = 'g'
else:
if self.listbox.keypress(p_size, p_key):
return super(TodoListWidget, self).keypress(p_size, p_key)
self.listbox.keypress(p_size, p_key)
def selectable(self):
return True
......
......@@ -75,5 +75,3 @@ class ViewWidget(urwid.LineBox):
def keypress(self, p_size, p_key):
if p_key == 'esc':
self.close()
else:
return super(ViewWidget, self).keypress(p_size, p_key)
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