Exemple #1
0
 def __init__(self, stdscr: window, users: UserModel, p: float = 0.5):
     self.stdscr = stdscr
     self.h = 0
     self.w = 0
     self.win = stdscr.subwin(self.h, self.w, 0, 0)
     self._refresh = self.win.refresh
     self.users = users
Exemple #2
0
 def __init__(self, stdscr: window, model: Model) -> None:
     self.stdscr = stdscr
     self.h = 0
     self.w = 0
     self.win = stdscr.subwin(self.h, self.w, 0, 0)
     self._refresh = self.win.refresh
     self.model = model
Exemple #3
0
 def __init__(self, stdscr: window) -> None:
     self.h = 1
     self.w = curses.COLS
     self.y = curses.LINES - 1
     self.x = 0
     self.stdscr = stdscr
     self.win = stdscr.subwin(self.h, self.w, self.y, self.x)
     self._refresh = self.win.refresh