Skip to content

polychron.presenters.ProjectSelectProcessPopupPresenter Module

ProjectSelectProcessPopupPresenter

Bases: PopupPresenter[ProjectSelectProcessPopupView, ProjectSelection], Mediator

Presenter for the project new or select process, which is a mult-frame presenter, much like the main window.

set_window_title

set_window_title(suffix: str | None = None) -> None

Update the popup window title to reflect the current state of the project selection process

Parameters:

Name Type Description Default
suffix str | None

an optional suffix which will be appended to the default window title

None

switch_presenter

switch_presenter(key: str | None) -> None

Switch the current presenter using the provided key

Parameters:

Name Type Description Default
key str | None

The key for the presenter to switch to (if not None)

required

close_window

close_window(reason: str = None) -> None

Close the process popup window, changing the main window presenter/view as required

Todo

close_view and close_window should be combined.