mojo.events

from mojo.events import *

Imports useful helpers when building extensions and scripts requiring app event callbacks.

When subclassing or building tools on top of other tools you can find some embedded tools here.

installTool(tool)

install tool

uninstallTool(tool)

uninstall tool

addObserver(observer, method, event)

Adds an observer for an event to the observer method, callbacks will be send to the method of the observer.

removeObserver(observer, event)

Removes the observer for an event.

class BaseEventObserver

The base class of an observer.

class BaseEventTool

The base class of an Tool

class EditingTool

A subclass-able Editing Tool

class MeasurementTool

A subclass-able Measurement Tool

class SliceTool

A subclass-able Slice Tool

class BezierDrawingTool

A subclass-able Bezier Tool