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
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