Exemple #1
0
 def update_label(self, val):
   self.label.configure(text = song.note_label(int(val)))
Exemple #2
0
 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
Exemple #3
0
 def __unicode__(self):
   return _("String (Banjo 5G)") + ", " + _("base = %s") % song.note_label(self.basenote)