'Set the text format string for this label.
May optionally contain "{value}" to include the lines current value
(the text will be reformatted whenever the line is moved).'

def setFormat(self, text):

    self.format = text
    self.valueChanged()
