geometor.seer_navigator.screens.task_screen¶
Defines the TaskScreen for displaying steps and summary of a single task.
Classes¶
The base class for screens. |
Module Contents¶
- class geometor.seer_navigator.screens.task_screen.TaskScreen(session_path: pathlib.Path, task_path: pathlib.Path, step_dirs: list[pathlib.Path])¶
Bases:
textual.screen.ScreenThe base class for screens.
- CSS = Multiline-String¶
Show Value
""" Screen > Vertical { grid-size: 2; grid-rows: auto 1fr; /* Summary auto height, table takes rest */ } #summary-grid { grid-size: 3; /* Three columns for the summary tables */ grid-gutter: 1 2; height: auto; /* Let the grid determine its height */ padding: 0 1; /* Add some horizontal padding */ margin-bottom: 1; /* Space below summary */ } .summary-table { height: auto; /* Fit content height */ border: none; /* No border for summary tables */ } /* Ensure no focus border on summary tables */ .summary-table:focus { border: none; } DataTable { /* Style for the main steps table */ height: 1fr; } Vertical {height: 100%;} """
Inline CSS, useful for quick scripts. Rules here take priority over CSS_PATH.
Note
This CSS applies to the whole app.
- BINDINGS¶
A list of key bindings.
- session_path¶
- task_path¶
- task_name¶
- step_dirs¶
- step_index = 0¶
- compose() → textual.app.ComposeResult¶
Called by Textual to create child widgets.
This method is called when a widget is mounted or by setting recompose=True when calling [refresh()][textual.widget.Widget.refresh].
Note that you don’t typically need to explicitly call this method.
Example
```python def compose(self) -> ComposeResult:
yield Header() yield Label(“Press the button below:”) yield Button() yield Footer()
- load_steps()¶
Loads data into the main steps DataTable.
- update_summary()¶
Updates the three summary DataTables for the current task.
- previous_sibling()¶
- next_sibling()¶
- action_move_up()¶
- action_move_down()¶
- action_select_row()¶
Called when a row is selected (Enter or ‘l’).
- on_data_table_row_selected(event: textual.widgets.DataTable.RowSelected)¶