animator.display.display.DM_cv2¶
- class animator.display.display.DM_cv2(scene: Scene, delay: float | None = None)¶
Bases:
animator.display.DisplayManager.DisplayManager
- __init__(scene: Scene, delay: float | None = None) None ¶
Manages the display of a scene.
- Parameters
scene – The scene to display.
delay – The delay between frames. If
None
, the delay will be calculated from the scene’s fps.
Methods
__init__
(scene[, delay])Manages the display of a scene.
close
()Closes the
DisplayManager
.get_best
()Returns the best available
DisplayManager
.Displays the current frame and returns
True
.waittime
()Returns the time to wait until the next frame should be displayed in seconds.
Attributes
display_method
- classmethod get_best() Type[animator.display.DisplayManager.DisplayManager] ¶
Returns the best available
DisplayManager
.