Definition at line 22 of file wrappers.py.
◆ __init__()
None python.iconfTool.gui.wrappers.GuiLoader.__init__ |
( |
|
self, |
|
|
ComponentsFileLoader |
data_loader |
|
) |
| |
Definition at line 23 of file wrappers.py.
23 def __init__(self, data_loader: ComponentsFileLoader) ->
None:
24 self.data_loader: ComponentsFileLoader = data_loader
25 self.data_structure: ComponentsStructure = self.data_loader.get_data()
28 self.pad_height: int = 0
30 self.actual_offset: int = 0
◆ _initialize()
None python.iconfTool.gui.wrappers.GuiLoader._initialize |
( |
|
self, |
|
|
|
stdscreen |
|
) |
| |
|
private |
Definition at line 40 of file wrappers.py.
40 def _initialize(self, stdscreen) -> None:
41 self.screen = stdscreen
43 self._initialize_window()
44 self._start_event_loop()
◆ _initialize_window()
None python.iconfTool.gui.wrappers.GuiLoader._initialize_window |
( |
|
self | ) |
|
|
private |
Definition at line 33 of file wrappers.py.
33 def _initialize_window(self) -> None:
34 self.height, self.width = self.screen.getmaxyx()
35 self.window = curses.newwin(self.height, self.width, 0, 0)
36 self.pad =
Pad(self.data_structure, self.width, self.height)
37 self.pad_height = self.height - 1
◆ _start_event_loop()
None python.iconfTool.gui.wrappers.GuiLoader._start_event_loop |
( |
|
self | ) |
|
|
private |
Definition at line 81 of file wrappers.py.
81 def _start_event_loop(self) -> None:
84 event: int = self.screen.getch()
85 logger.debug(f
"Key pressed: [{event}, {chr(event)}]")
88 elif event == ord(
"m"):
90 elif event == ord(
"h"):
92 elif event == ord(
"r"):
93 self.data_structure = self.data_loader.get_data()
94 self.pad.reload_data(self.data_structure)
97 self.pad.handle_event(event)
◆ load_gui()
None python.iconfTool.gui.wrappers.GuiLoader.load_gui |
( |
|
self | ) |
|
Definition at line 46 of file wrappers.py.
46 def load_gui(self) -> None:
47 curses.wrapper(self._initialize)
◆ refresh_whole_screen()
None python.iconfTool.gui.wrappers.GuiLoader.refresh_whole_screen |
( |
|
self | ) |
|
Definition at line 63 of file wrappers.py.
63 def refresh_whole_screen(self) -> None:
◆ search()
None python.iconfTool.gui.wrappers.GuiLoader.search |
( |
|
self, |
|
|
bool |
strict = False |
|
) |
| |
Definition at line 49 of file wrappers.py.
49 def search(self, strict: bool =
False) ->
None:
52 b_startx: int = self.width - search_size - 2
53 b_width: int = search_size
55 cursor_pos: Tuple[int, int] = curses.getsyx()
56 search: SearchModal = SearchModal(
57 b_startx, b_starty, b_width, b_height
59 text: str = search.edit()
60 curses.setsyx(cursor_pos[0], cursor_pos[1])
◆ show_help()
def python.iconfTool.gui.wrappers.GuiLoader.show_help |
( |
|
self | ) |
|
Definition at line 67 of file wrappers.py.
69 b_width: int = search_size
71 b_starty: int = self.screen.getmaxyx()[0] - b_height
72 b_startx: int = self.width - search_size - 2
73 cursor_pos: Tuple[int, int] = curses.getsyx()
74 search: SingleHelpModal = SingleHelpModal(
75 b_startx, b_starty, b_width, b_height
77 curses.setsyx(*cursor_pos)
79 self.pad.initialize_cursor()
◆ data_structure
python.iconfTool.gui.wrappers.GuiLoader.data_structure |
◆ pad
python.iconfTool.gui.wrappers.GuiLoader.pad |
◆ pad_height
python.iconfTool.gui.wrappers.GuiLoader.pad_height |
◆ screen
python.iconfTool.gui.wrappers.GuiLoader.screen |
◆ width
python.iconfTool.gui.wrappers.GuiLoader.width |
◆ window
python.iconfTool.gui.wrappers.GuiLoader.window |
The documentation for this class was generated from the following file:
void search(TDirectory *td, const std::string &s, std::string cwd, node *n)
recursive directory search for TH1 and TH2 and TProfiles