polychron.views.AddContextView
Module
AddContextView
Bases: PopupView
View for adding an additional context to the current model
Takes a single context label as user input to add to the model
Formerly popupWindow
__init__
__init__(parent: Frame) -> None
Construct the view, without binding any callbacks
bind_ok_button
bind_ok_button(callback: Callable[[], Any | None]) -> 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
get_input
get_input() -> str
Get the string provided by the user
Returns:
Type | Description |
---|---|
str
|
User provided string |