ui/curses: cancel char creation one step at a time

This commit is contained in:
rr-
2019-01-04 20:07:43 +01:00
parent bd3f196f84
commit 3d8034b285
6 changed files with 47 additions and 18 deletions
+2 -1
View File
@@ -12,6 +12,7 @@ class Menu(Widget):
self,
header: str,
choices: T.List[Choice],
active_choice: int,
scr_height: int,
scr_width: int,
) -> None:
@@ -28,7 +29,7 @@ class Menu(Widget):
self._pad.move(y, 0)
self._pad.addstr(line)
self._active_choice = 0
self._active_choice = active_choice
def stop(self) -> None:
del self._pad