Skip to content

polychron.views.RemoveContextView Module

RemoveContextView

Bases: PopupView

View for removing contexts, providing a free-text reason

Formerly popupWindow5

__init__

__init__(parent: Frame) -> None

Construct the view, without binding any callbacks

bind_ok_button

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

Bind the callback for when the ok_button is pressed

bind_cancel_button

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

Bind the callback for when the cancel_button is pressed

update_label

update_label(context: str | None = None) -> None

Update the label text to include the context being removed.

get_reason

get_reason() -> str

Get the reason from the text area