Source code for trescope.controller.Label

from trescope.controller import ControllerNode


[docs]class Label(ControllerNode): """ Label for information display . """ def __init__(self): super().__init__() self.__value = None self.__openIfLink = True
[docs] def value(self, value: str): """ Value of label . :param value: value :return: self , for chain call """ self.__value = value return self
def toDict(self): return {**super().toDict(), 'type': 'Label', 'value': self.__value, 'openIfLink': self.__openIfLink}