Skip to content

Commit 0c269c9

Browse files
author
Hugo Osvaldo Barrera
committed
Avoid urwid warnings
Actually follow their documented API, and avoid warnings.
1 parent 662f5a6 commit 0c269c9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

todoman/interactive.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ def __init__(self, todo, lists, formatter):
4747
grid = urwid.Pile(pile_items)
4848
spacer = urwid.Divider()
4949

50-
self.left_column = urwid.ListBox([
50+
self.left_column = urwid.ListBox(urwid.SimpleListWalker([
5151
grid,
5252
spacer,
5353
self._status,
5454
buttons,
55-
])
56-
right_column = urwid.ListBox(
55+
]))
56+
right_column = urwid.ListBox(urwid.SimpleListWalker(
5757
[urwid.Text('List:\n')] + self.list_selector
58-
)
58+
))
5959

6060
self._ui = urwid.Columns([self.left_column, right_column])
6161

0 commit comments

Comments
 (0)