trading_agent.terminal.widgets.page_picker
¶
The list of pages, opened with F2, standing in for the web page's sidebar.
It returns the chosen page's command, or None when the user presses Escape.
Typical usage example:
app.push_screen(PagePicker(), on_chosen)
PagePicker
¶
Bases: ModalScreen[str | None]
The page list.
Creates the list.
Source code in src/trading_agent/terminal/widgets/page_picker.py
compose
¶
Builds the list.
Yields:
| Type | Description |
|---|---|
Widget
|
The title, the pages and the hint. |
Source code in src/trading_agent/terminal/widgets/page_picker.py
on_mount
¶
on_option_list_option_selected
¶
Returns the chosen page's command.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event
|
OptionSelected
|
The choice. |
required |