def updateLabel(self):
    pref = self.program.prefs.category(self.prefCategory)[self.prefName]
    if (pref is None):
        label = self.toggleUndefined
    else:
        label = (self.toggleOn if pref else self.toggleOff)
    self.label = (u'%*s' % (self.width, label))
def updateLabel(self):
    pref = self.program.prefs.category(self.prefCategory)[self.prefName]
    if (pref is None):
        label = self.toggleUndefined
    else:
        label = (self.toggleOn if pref else self.toggleOff)
    self.label = (u'%*s' % (self.width, label))