polychron.views.PopupView Module
PopupView
Bases: Toplevel
Base class for Views exist within their own popup window
parent
instance-attribute
parent = parent
A reference to the parent frame
__init__
__init__(parent: Toplevel) -> None
Call the base class (Toplevel) constructor
register_keybinds
register_keybinds(bindings: Dict[str, Callable[[], Any]]) -> None
Register window-wide key bindings
register_protocols
register_protocols(bindings: Dict[str, Callable[[], Any]]) -> None
Register protocols with the window
i.e. what happens when the window is closed using the OS decorations
centered_geometry
centered_geometry(width: int, height: int) -> None
Set the popup view's geometry, centred within the parent window
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
width
|
int
|
the width of the popup view |
required |
height
|
int
|
the height of the popup view |
required |