)
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()
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()
else:
percent = str(
round(self.obj.index / (len(self.stack) - 1) * 100)
- ).zfill(2)
+ ).zfill(3)
# Print yellow if starred
if self.current_card().starred:
)
self.win.hline(1, 0, curses.ACS_HLINE, mcols)
- self.disp_bar()
self.disp_sidebar()
+ self.disp_bar()
def current_card(self):
"""Get current card object"""
if i > mlines - 6:
for i in range(19):
- self.win.addch(mlines - 3, left + i, " ")
+ self.win.addch(mlines - 4, left + i, " ")
self.win.addstr(
mlines - 4,