From: Armaan Bhojwani Date: Sun, 14 Feb 2021 04:47:34 +0000 (-0500) Subject: Clean up enumerates X-Git-Tag: v0.7.0~8 X-Git-Url: https://git.armaanb.net/?p=lightcards.git;a=commitdiff_plain;h=eab52aa7f3cc154f25e578dc66de522259eacbd2 Clean up enumerates --- diff --git a/lightcards/display.py b/lightcards/display.py index e7ebb1f..2b4a51f 100644 --- a/lightcards/display.py +++ b/lightcards/display.py @@ -108,8 +108,8 @@ class Help(Panel): ) self.win.hline(2, 1, curses.ACS_HLINE, mcols) - for t in enumerate(text): - self.win.addstr(t[0] + 3, 1, t[1]) + for i, content in enumerate(text, 3): + self.win.addstr(i, 1, content) self.win.box() @@ -156,8 +156,8 @@ class Menu(Panel): f"{c('menu_disp')}: close menu", ] - for t in enumerate(text): - self.win.addstr(t[0] + 3, 1, t[1]) + for i, content in enumerate(text, 3): + self.win.addstr(i, 1, content) self.win.box()