Add an accounts list setter

chart_mod_breakup
Tyler Goodlet 2021-09-14 10:36:44 -04:00
parent b04645aa47
commit 9e15401ddc
1 changed files with 9 additions and 0 deletions

View File

@ -133,6 +133,15 @@ class SettingsPane:
# encompasing high level namespace
order_mode: Optional['OrderMode'] = None # typing: ignore # noqa
def set_accounts(
self,
names: list[str],
sizes: Optional[list[float]] = None,
) -> None:
combo = self.form.fields['account']
return combo.set_items(names)
def update_accounts_icon(
self,
status: str, # one of the values in ``_icons`` above