def add_text(self, text):
        """Add text to the label.

        text (string)
            text to be added.
        """
        ### extend content with text
        self.contents += text

        ### update image
        self.update_image()

        ### if there are position related attributes
        ### available, use them to update the position
        ### of the rect too

        try:
            coordinates_name = self.coordinates_name
            coordinates_value = self.coordinates_value

        except AttributeError:
            pass

        else:
            setattr(self.rect, coordinates_name, coordinates_value)
Add text to the label.

        text (string)
            text to be added.
        
nodezator/textman/label/main.py