Transform

class glumpy.transforms.Transform(code, *args, **kwargs)

Bases: glumpy.gloo.snippet.Snippet, glumpy.app.window.event.EventDispatcher

Transforms are snippets that can handle and propagate events such that they are able to react to window event.

A Transform can be connected to the following events:

  • on_attach
  • on_resize
  • on_mouse_scroll
  • on_mouse_grab
  • on_mouse_press
  • on_mouse_release
attach(program)

Attach the transform to a program