polychron.presenters.ResidualOrIntrusivePresenter
Module
ResidualOrIntrusivePresenter
Bases: PopupPresenter[ResidualOrIntrusiveView, Model]
, Mediator
Presenter for marking contexts as being residual or intrusive
mode
instance-attribute
mode: Literal['resid', 'intru'] | None = None
The currently selected mode, either None, "resid" or "intru"
Formerly PageTwo.modevariable
update_view
update_view() -> None
Update the view to reflect the current state of the model/presenter.
Parts of this formerly in:
StartPage.mode_set
StartPage.__init__
set_mode
set_mode(mode: Literal['resid', 'intru'] | None) -> None
Set the current mode, and update the view accordingly.
Formerly part of StartPage.mode_set
Paramters
mode: The mode to set
Raises:
Type | Description |
---|---|
ValueError
|
if mode is invalid |
on_resid_button
on_resid_button() -> None
Enable resid mode for user interaction
on_intru_button
on_intru_button() -> None
Enable intrusive mode for user interaction
on_proceed
on_proceed() -> None
When the proceed button is pressed, open the next popup window for managing intrusive or residual contexts
Formerly PageTwo.popup4_wrapper
move_from2
move_from2(event: Any) -> None
Remembers previous coordinates for scrolling with the mouse
Formerly PageTwo.move_from2
move_to2
move_to2(event: Any) -> None
Drag (move) canvas to the new position
Formerly PageTwo.move_to2
on_wheel2
on_wheel2(event: Any) -> None
Zoom with mouse wheel for the chronological image canvas
Formerly PageTwo.wheel2
resid_node_click
resid_node_click(event: Any) -> None
Gets node that you're clicking on and sets it as the right colour depending on if it's residual or intrusive
Formerly PageTwo.resid_node_click
nodecheck
nodecheck(x_current: int, y_current: int) -> str
returns the node that corresponds to the mouse cooridinates
Formerly PageTwo.nodecheck
load_graph
load_graph() -> None
Loads graph on results page
Formerly PageTwo.load_graph