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:
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)
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
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: