X-Git-Url: https://git.armaanb.net/?a=blobdiff_plain;f=lightcards%2Fdisplay.py;h=5ecb14c0d984d98351efbf393d4bde71bb9aa0ae;hb=a32f80e459c2fa88cfde61fd80d1a8543cc51e8b;hp=3931e3f84f574f520b9c272850e654ee1d07a25a;hpb=b43e50be2267001cd085bc5cd1be01a59a5eddea;p=lightcards.git diff --git a/lightcards/display.py b/lightcards/display.py index 3931e3f..5ecb14c 100644 --- a/lightcards/display.py +++ b/lightcards/display.py @@ -20,13 +20,6 @@ def panel_create(x, y): return (win, panel) -class CursesError(BaseException): - def __init__(self, message="lightcards: Curses error!"): - self.message = message - print(self.message) - sys.exit(3) - - class Quit: def __init__(self, outer, mlines=5, mcols=20): self.outer = outer @@ -311,8 +304,6 @@ class Display: return [card for card in self.stack if card.starred] def prep_bar(self): - (mlines, mcols) = self.win.getmaxyx() - # Calculate percent done if len(self.stack) <= 1: percent = "100"