Hello world

Here is the corresponding code as a Macro class:

#!/bin/env python
# 
# file name: /home/pXXuser/sardanaMacros/hello_world_class.py 
# 
"""this module contains the hello world macro"""

__all__ = ["hello_world_class"]

from sardana.macroserver.macro import *
from sardana.macroserver.macro import macro

class hello_world_class(Macro):
    """The hello world macro as a class."""
    def run(self):
        self.output( "Hello World (Class)")



2019-11-13