def refresh_status(self, *, no_refresh = False):
max_y, max_x = self.stdscr.getmaxyx()
self.stdscr.hline(max_y - 2, 0, "=", max_x)
self.display_time(no_refresh=True)
self.display_line(no_refresh=True)
self.stdscr.chgat(max_y - 2, 0, curses.A_BOLD)
if not no_refresh:
self.stdscr.refresh()
评论列表
文章目录