diff options
author | Walter Bender <walter.bender@gmail.com> | 2012-06-21 19:25:59 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2012-06-21 19:25:59 (GMT) |
commit | 81a8e42bc5dc2ffafc417661688e8f05f6986487 (patch) | |
tree | 06afd69e172385f84f2218dcf8c3ccc638feccb9 | |
parent | 4b1ca5707e272d8a62f00e536436079c62f71ed1 (diff) |
remove notes combo when tuning an instrument
-rw-r--r-- | tuning_toolbar.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tuning_toolbar.py b/tuning_toolbar.py index 948a168..e61e630 100644 --- a/tuning_toolbar.py +++ b/tuning_toolbar.py @@ -29,8 +29,8 @@ log = logging.getLogger('measure-activity') log.setLevel(logging.DEBUG) -NOTES = ['C', 'C♯/D♭', 'D', 'D♯/E♭', 'E', 'F', 'F♯/G♭', - 'G', 'G♯/A♭', 'A', 'A♯/B♭', 'B'] +NOTES = ['C', 'C♯/D♭', 'D', 'D♯/E♭', 'E', 'F', 'F♯/G♭', 'G', 'G♯/A♭', 'A', + 'A♯/B♭', 'B'] SHARP = '♯' FLAT = '♭' A0 = 27.5 @@ -240,7 +240,10 @@ class TuningToolbar(gtk.Toolbar): self.remove(self._tuning_tool) if instrument == _('None'): self.activity.wave.instrument = None + if hasattr(self, '_notes_tool'): + self.insert(self._notes_tool, 2) return + self.remove(self._notes_tool) self.activity.wave.instrument = instrument # Add a Tuning Combo box for this instrument |