trading_agent.terminal.widgets.keys_screen
¶
A dialog listing the terminal program's keys and its own commands, opened with ? or /keys.
Typical usage example:
app.push_screen(KeysScreen())
KeysScreen
¶
Bases: ModalScreen[None]
The list of keys and terminal commands.
Creates the dialog.
Source code in src/trading_agent/terminal/widgets/keys_screen.py
compose
¶
Builds the dialog.
Yields:
| Type | Description |
|---|---|
Widget
|
The title, the keys, the terminal commands and the hint. |
Source code in src/trading_agent/terminal/widgets/keys_screen.py
TerminalCommandList
¶
The terminal program's own commands, for the command menu.
entries
¶
The commands as menu entries.
Returns:
| Type | Description |
|---|---|
list[dict[str, str]]
|
Each with name, usage and description. |