B Python API

B.1 Script variables

Each script variable is available under the name given in the script variable table.

Method Description
getValue() Current value (a number, or a NumPy array for vectors)

B.2 The widget object

Method Description
setEnabled(enabled) Enables or disables the widget
setProperty(name, value) Sets a (dynamic) Qt property of the widget

B.3 The tm module

import tm
Function Description
tm.tabCount() Number of tabs of the current layout
tm.maximize(max) Maximizes (or restores) the main window