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