X-Git-Url: https://git.armaanb.net/?p=lightcards.git;a=blobdiff_plain;f=lightcards%2Fdisplay.py;h=2fc7058f997f0dedab6af4886728d578658e449d;hp=9ed12e2e41548b29f8e5526ddd0702222caaf828;hb=ad09395368c4a4135bfd50c670e7da0f184dae8a;hpb=06e79831c8149c91605bf5ac28d89aac99c81389 diff --git a/lightcards/display.py b/lightcards/display.py index 9ed12e2..2fc7058 100644 --- a/lightcards/display.py +++ b/lightcards/display.py @@ -32,7 +32,7 @@ class Display(): Display the statusbar at the bottom of the screen with progress, star status, and card side. """ - (mlines, mcols) = self.win.getmaxyx() + (mlines, _) = self.win.getmaxyx() # Calculate percent done if len(self.stack) <= 1: @@ -62,7 +62,6 @@ class Display(): self.win.insstr(bar_end, curses.color_pair(1)) def menu_print(self, string, err=False): - (mlines, mcols) = self.win.getmaxyx() self.win.clear() if err: color = curses.color_pair(2) @@ -151,7 +150,7 @@ class Display(): self.menu_grab() def wrap_width(self): - (mlines, mcols) = self.win.getmaxyx() + (_, mcols) = self.win.getmaxyx() wrap_width = mcols if mcols > 80: wrap_width = 80 @@ -164,7 +163,7 @@ class Display(): side. """ self.win.clear() - (mlines, mcols) = self.win.getmaxyx() + (_, mcols) = self.win.getmaxyx() if self.obj.getIdx() == len(self.stack): self.disp_menu(quit=True) else: