To fix this, I changed line 349 of curses_menu.py to the following:
def clear_screen(self):
"""
Clear the screen belonging to this menu
"""
self.screen.clear()
screen_rows, screen_cols = CursesMenu.stdscr.getmaxyx()
top_row = 0
self.screen.refresh(top_row, 0, 0, 0, screen_rows - 1, screen_cols - 1)
I'm not sure why self.screen.clear() wasn't getting the job done by itself. I also tried simply adding self.draw(), which mostly worked, but caused parts of the menu to not show up until you selected them.
I have a feeling this fix is more of a bandaid than an actual fix, so I didn't submit a pull request.
Try this example:
Here's a screenshot: http://i.imgur.com/kjqnWAI.png
To fix this, I changed line 349 of curses_menu.py to the following:
I'm not sure why
self.screen.clear()
wasn't getting the job done by itself. I also tried simply addingself.draw()
, which mostly worked, but caused parts of the menu to not show up until you selected them.I have a feeling this fix is more of a bandaid than an actual fix, so I didn't submit a pull request.