(mlines, mcols) = self.outer.win.getmaxyx()
self.win.mvwin(int(mlines / 2) - 3, int(mcols / 2) - 10)
self.panel.show()
- if self.outer.config["confirm_quit"]:
+ if self.outer.config["quit_confirmation"]:
while True:
key = self.win.getkey()
if key == "y":
)
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()