From b00061af80cc5939b2ab5d426a839807f39a1d3e Mon Sep 17 00:00:00 2001 From: Digital Studium Date: Sun, 7 Apr 2024 22:30:13 +0300 Subject: [PATCH] Add comments --- kls | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kls b/kls index f034466..ec02d9d 100755 --- a/kls +++ b/kls @@ -71,9 +71,9 @@ def run_command(command, current_menu, rows=None): def navigate_horizontally(direction, current_menu): increment = {"right": 1, "left": -1} - menus[current_menu].win.addstr(1, 2, menus[current_menu].name) - current_menu = (current_menu + increment[direction]) % 3 - menus[current_menu].win.addstr(1, 2, menus[current_menu].name, curses.A_REVERSE | curses.A_ITALIC) + menus[current_menu].win.addstr(1, 2, menus[current_menu].name) # удаляем выделение с текущего меню + current_menu = (current_menu + increment[direction]) % 3 # переходим к предыдущему/следующему меню + menus[current_menu].win.addstr(1, 2, menus[current_menu].name, curses.A_REVERSE | curses.A_ITALIC) # и выделяем его return current_menu