def update_label(self, val): self.label.configure(text = song.note_label(int(val)))
def update(self): try: val = getattr(self.obj, self.attr) except AttributeError: return 0 # Not readable => do not update ! self.scale.set(val) self.label.configure(text = song.note_label(val)) return 1
def __unicode__(self): return _("String (Banjo 5G)") + ", " + _("base = %s") % song.note_label(self.basenote)