vispy.app.base module

class vispy.app.base.BaseApplicationBackend

Bases: object

Abstract class that provides an interface between backends and Application. Each backend must implement a subclass of ApplicationBackend, and implement all its _vispy_xxx methods.

class vispy.app.base.BaseCanvasBackend(vispy_canvas, capability, context_type)

Bases: object

Abstract class that provides an interface between backends and Canvas. Each backend must implement a subclass of CanvasBackend, and implement all its _vispy_xxx methods. Also, a backend must make sure to generate the following events: ‘initialize’, ‘resize’, ‘draw’, ‘mouse_press’, ‘mouse_release’, ‘mouse_move’, ‘mouse_wheel’, ‘key_press’, ‘key_release’. When a backend detects that the canvas should be closed, the backend should call ‘self._vispy_canvas.close’, because the close event is handled within the canvas itself.

class vispy.app.base.BaseTimerBackend(vispy_timer)

Bases: object

Abstract class that provides an interface between backends and Timer. Each backend must implement a subclass of TimerBackend, and implement all its _vispy_xxx methods.