trading_agent.terminal.screens.settings_screen
¶
The Settings page: the standing "always allow" permissions, with revoke, and the configuration file with secrets masked.
It copies the web page's SettingsPage.tsx. The configuration is read-only here, as on the web page.
Typical usage example:
app.push_screen(SettingsScreen('general'))
SettingsScreen
¶
Bases: PageScreen
The Settings page.
Source code in src/trading_agent/terminal/screens/page_screen.py
compose_page
¶
Builds the permissions table and the configuration.
Yields:
| Type | Description |
|---|---|
Widget
|
The sections, in a scroll area. |
Source code in src/trading_agent/terminal/screens/settings_screen.py
on_mount
¶
Sets up the table, then reads the settings.
refresh_page
async
¶
Reads the permissions and the configuration.
Source code in src/trading_agent/terminal/screens/settings_screen.py
action_revoke
¶
Revokes the highlighted standing permission.