scripts.mode_controller

Module contents

Author: Carmen Meinson

class ModeController(model: scripts.core.model.Model, view: scripts.tools.view.View)

Bases: object

set_next_mode(mode: Optional[str] = None) None

set the interaction mode that the model will be set to from the next frame. (next time the change_mode_if_needed() is called) If no mode is indicated the next mode is set according to the iteration_order, provided

Parameters

mode (Optional[str], optional) – name of the mode, defaults to None

change_mode_if_needed() None

If the next mode has been previously set by the set_next_mode(), change the events in the model accordingly.

close() None