self.win.box()
+ def clear_msg(self):
+ for i in range(42):
+ self.win.addch(15, i + 1, " ")
+
def menu_print(self, string, err=False):
"""Print messages on the menu screen"""
if err:
Display a menu offering multiple options on how to manipulate the deck
and to continue
"""
- for i in range(42):
- self.win.addch(14, i + 1, " ")
+ self.clear_msg()
(mlines, mcols) = self.outer.win.getmaxyx()
self.win.mvwin(int(mlines / 2) - 8, int(mcols / 2) - 22)