env
¶
Environment related macros
-
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
False
- ShowCtrlAxis: used by macro wm, pwm and wa. Default value
False
- PosFormat: used by macro wm, pwm and wa. Default value
-1
- OutputBlock: used by scan macros. Default value
False
- DescriptionLength: used by lsdef. Default value
60
- ShowDial: used by macro wm, pwm and wa. Default value
-
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
False
- ShowCtrlAxis: used by macro wm, pwm and wa. Default value
False
- PosFormat: used by macro wm, pwm and wa. Default value
-1
- OutputBlock: used by scan macros. Default value
False
- DescriptionLength: used by lsdef. Default value
60
- ShowDial: used by macro wm, pwm and wa. Default value
-
class
lsenv
(*args, **kwargs)[source]¶ Lists the environment in alphabetical order
-
class
lsgh
(*args, **kwargs)[source]¶ List general hooks.
Note
The lsgh macro 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 defgh macro 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.