From 2138a8ffe28a4e8d330392a404fec7aba63ffd8b Mon Sep 17 00:00:00 2001 From: Nate Smith Date: Sun, 10 Dec 2023 16:08:06 -0800 Subject: [PATCH] j k --- main.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index d282cd2..ad95bbd 100755 --- a/main.py +++ b/main.py @@ -134,17 +134,18 @@ class UI: if c == -1 or c == ord("q") or c == ord("x") or c == 27: self.quit() break - if c == curses.KEY_DOWN: + if c == curses.KEY_DOWN or c == ord("j"): self.selected_opt += 1 self.selected_opt %= len(self.menu_opts) self.draw_menu() - if c == curses.KEY_UP: + if c == curses.KEY_UP or c == ord("k"): self.selected_opt -= 1 if self.selected_opt < 0: self.selected_opt = 0 self.draw_menu() def draw_menu(self) -> None: + # TODO water gauge self.menuwin.addstr(1, 2, " botany ", curses.A_STANDOUT) self.menuwin.addstr(3, 2, "options", curses.A_BOLD) x = 0 @@ -180,8 +181,6 @@ class UI: self.plantwin.addstr(0,0, plant, curses.A_STANDOUT) self.plantwin.refresh() - # TODO redraw water gauge - # TODO Plant def main() -> Optional[Exception]: