env¶
Environment related macros
-
class
lsenv(*args, **kwargs)[source]¶ Lists the environment in alphabetical order
-
class
setvo(*args, **kwargs)[source]¶ Sets the given view option to the given value.
Available view options:
ShowDial: used by macro wm, pwm and wa. Default value
FalseShowCtrlAxis: used by macro wm, pwm and wa. Default value
FalsePosFormat: used by macro wm, pwm and wa. Default value
-1OutputBlock: used by scan macros. Default value
FalseDescriptionLength: used by lsdef. Default value
60
-
class
usetvo(*args, **kwargs)[source]¶ Resets the value of the given view option.
Available view options:
ShowDial: used by macro wm, pwm and wa. Default value
FalseShowCtrlAxis: used by macro wm, pwm and wa. Default value
FalsePosFormat: used by macro wm, pwm and wa. Default value
-1OutputBlock: used by scan macros. Default value
FalseDescriptionLength: used by lsdef. Default value
60
-
class
lsgh(*args, **kwargs)[source]¶ List general hooks.
Note
The
lsghmacro has been included in Sardana on a provisional basis. Backwards incompatible changes (up to and including its removal) may occur if deemed necessary by the core developers.
-
class
defgh(*args, **kwargs)[source]¶ Define general hook:
>>> defgh "mv [[mot02 9]]" pre-scan >>> defgh "ct 0.1" pre-scan >>> defgh lsm pre-scan >>> defgh "mv mot03 10" pre-scan >>> defgh "Print 'Hello world'" pre-scan
Note
The
defghmacro has been included in Sardana on a provisional basis. Backwards incompatible changes (up to and including its removal) may occur if deemed necessary by the core developers.