4.1. Global functions¶
- mocha.tools.set_license_search_path()
- mocha.tools.get_license_path()
- mocha.tools.get_current_project()
- mocha.tools.register_custom_tool_type()
- mocha.tools.tool_instance()
- mocha.tools.registered_tool_types()
- mocha.tools.set_overlay_renderer()
4.1.1. Detailed Description¶
- mocha.tools.set_license_search_path(path)¶
- mocha.tools.get_license_path()¶
Return type: unicode
- mocha.tools.get_current_project()¶
Return type: mocha.project.Project
- 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 (QOpenGLWidget instance, X Scale, Y Scale).