4.1. Global functions

4.1.1. Detailed Description

mocha.tools.register_custom_tool_type(tool_type)
Parameters:tool_type (PyTypeObject) – Custom tool type that must inherit from AbstractTool.

Registers a custom tool type.

mocha.tools.tool_instance(tool_type)
Return type:PyObject
Parameters:tool_type (PyTypeObject) – Custom tool type that must inherit from AbstractTool.

Returns either None or a tool instance if it was created.

mocha.tools.registered_tool_types()
Return type:PyObject

Returns a list of registered tool types.

mocha.tools.set_overlay_renderer(arg__1)

Sets the callback function which is called each time when canvas rendering. The callback must accept 3 positional arguments (QGLWidget instance, X Scale, Y Scale).