From 31dfa87113101521b8fd299d75007bfcd26ff89e Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Fri, 12 Feb 2021 09:15:53 -0500 Subject: [PATCH] Remove update_panels() --- lightcards/display.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/lightcards/display.py b/lightcards/display.py index 6f572ad..98c48e7 100644 --- a/lightcards/display.py +++ b/lightcards/display.py @@ -64,7 +64,6 @@ class Help: """Display help screen""" (mlines, mcols) = self.outer.win.getmaxyx() self.win.mvwin(int(mlines / 2) - 10, int(mcols / 2) - 26) - self.outer.update_panels() self.panel.show() while True: @@ -109,7 +108,6 @@ class Menu: self.win.addstr(t[0] + 3, 1, t[1]) self.win.box() - self.outer.update_panels() def menu_print(self, string, err=False): """Print messages on the menu screen""" @@ -122,7 +120,6 @@ class Menu: self.win.addch(15, i + 1, " ") self.win.addstr(15, 1, string, color) - self.outer.update_panels() self.menu_grab() def menu_grab(self): @@ -131,7 +128,6 @@ class Menu: key = self.win.getkey() if key in ["r", "m"]: self.panel.hide() - self.outer.update_panels() self.outer.get_key() elif key == "q": self.outer.leave() @@ -189,7 +185,6 @@ class Menu: (mlines, mcols) = self.outer.win.getmaxyx() self.win.mvwin(int(mlines / 2) - 9, int(mcols / 2) - 22) self.panel.show() - self.outer.update_panels() self.menu_grab() @@ -233,11 +228,6 @@ class Display: else: self.disp_card() - def update_panels(self): - """Update panel and window contents""" - curses.panel.update_panels() - curses.doupdate() - def leave(self): """Pickle stack before quitting""" if self.obj.index + 1 == len(self.stack): @@ -350,7 +340,7 @@ class Display: width=self.wrap_width(), ), ) - self.update_panels() + self.disp_bar() self.disp_sidebar() -- 2.39.2