Skip to content

polychron.views.ModelSelectView Module

ModelSelectView

Bases: FrameView

Passive view for Model loading/selection

__init__

__init__(parent: Frame) -> None

Construct the view, without binding any callbacks

bind_load_button

bind_load_button(callback: Callable[[], Any]) -> None

Bind the callback for when the load_button is pressed & when enter is pressed with a list item selected

bind_back_button

bind_back_button(callback: Callable[[], Any]) -> None

Bind the callback for when the back_button is pressed

bind_create_model_button

bind_create_model_button(callback: Callable[[], Any]) -> None

Bind the callback for when the create_model_button is pressed

update_model_list

update_model_list(model_names: List[str])

Update the list of models to choose from to include the provided list of model names

get_selected_model

get_selected_model() -> str | None

Get the value of the currently selected model name

set_project_name

set_project_name(project_name: str) -> None

Update the label to include the project name