Skip to content

polychron.views.SplashView Module

SplashView

Bases: FrameView

View for the splash screen main window view.

This is displayed in the main window before a project is opened, and just allows users to re-open the new/load project popup in case they close it without loading anything.

This is implemented as a passive view, i.e. UI elements have no callbacks at constrution, and they must be explcitly bound afterwards

__init__

__init__(parent: Frame) -> None

Construct the view, without binding any callbacks

recentre_image

recentre_image(event) -> None

Callback for when the window is resized to re-size and re-center the image

build_file_menu

build_file_menu(items: List[Tuple[str, Callable[[], Any]] | None]) -> None

Builds the 'file' menu element with labels and callback functions.

Parameters:

Name Type Description Default
items List[Tuple[str, Callable[[], Any]] | None]

A List of menu entries to add, which may be None to identify a separator, or a tuple containing a label anf callback fucntion.

required