Setup screen
SetupScreen
Bases: Screen[None]
flowchart TD
src.tradingagents.interface.tui.setup_screen.SetupScreen[SetupScreen]
click src.tradingagents.interface.tui.setup_screen.SetupScreen href "" "src.tradingagents.interface.tui.setup_screen.SetupScreen"
Collect run parameters via a Textual form, then push :class:RunScreen.
The screen owns every form widget; values are read directly from
those widgets at submit time and fed into :class:SetupParams so
Pydantic does the per-field and cross-field validation.
Methods:
| Name | Description |
|---|---|
compose |
Build the setup form layout. |
on_button_pressed |
Handle the Start / Cancel button clicks. |
action_start |
Validate the form, then push :class: |
action_cancel |
Exit the app without running anything. |
Source code in src/tradingagents/interface/tui/setup_screen.py
BINDINGS
BINDINGS: list[Binding] = [
Binding("escape", "cancel", "Cancel"),
Binding("ctrl+s", "start", "Start"),
]
compose
Build the setup form layout.
Yields:
| Name | Type | Description |
|---|---|---|
ComposeResult |
ComposeResult
|
The widgets that make up the form, including |
ComposeResult
|
text inputs, selects, the analyst checkboxes row, and the |
|
ComposeResult
|
Start / Cancel buttons. |
Source code in src/tradingagents/interface/tui/setup_screen.py
on_button_pressed
Handle the Start / Cancel button clicks.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
Pressed
|
The button press event. |
required |
Source code in src/tradingagents/interface/tui/setup_screen.py
action_start
Validate the form, then push :class:RunScreen on success.