8 self, start_x: int, start_y: int, width: int, height: int
10 self.width: int = width
11 self.height: int = height
12 self.start_x: int = start_x
13 self.start_y: int = start_y
14 self.
window = curses.newwin(height, width, start_y, start_x)
27 self, start_x: int, start_y: int, width: int, height: int
29 super().
__init__(start_x, start_y, width, height)
31 self.height - 2, self.width - 2, 1, 1
41 self, start_x: int, start_y: int, width: int, height: int
43 super().
__init__(start_x, start_y, width, height)
45 self.height - 2, self.width - 2, 1, 1
49 self.y, self.
x = self.begin_y, self.
begin_x
53 def add_line(self, text: str, blank_lines: int = 1) ->
None:
54 self.
window.addstr(self.y, self.
x, text)
61 class SingleHelpModal(HelpModal):
66 self.
add_line(
"Arrows for navigation", 2)
68 self.
add_line(
"h - display this help")
71 self.
add_line(
"r - refresh the screen", 2)
73 self.
add_line(
"q - quit the program")
83 self.
add_line(
"Arrows for navigation", 2)
87 self.
add_line(
"h - display this help")
90 self.
add_line(
"r - refresh the screen", 2)
92 self.
add_line(
"q - quit the program")