diff options
author | Nat <Nat@localhost.localdomain> | 2007-02-23 22:43:19 (GMT) |
---|---|---|
committer | Nat <Nat@localhost.localdomain> | 2007-02-23 22:43:19 (GMT) |
commit | 39b843401c8635ad4ab1136af46b293bf030d866 (patch) | |
tree | 734675780da5f49a8e3d20311566f33531d8ded6 /Util/InstrumentPanel.py | |
parent | 8f495a65f7d7afd957153f63a3a5c0804746e080 (diff) |
MainWindow/Instrument panel stuff
Diffstat (limited to 'Util/InstrumentPanel.py')
-rw-r--r-- | Util/InstrumentPanel.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Util/InstrumentPanel.py b/Util/InstrumentPanel.py index da0e842..da56ca4 100644 --- a/Util/InstrumentPanel.py +++ b/Util/InstrumentPanel.py @@ -162,6 +162,12 @@ class InstrumentPanel(gtk.EventBox): if self.firstInstButton == None: self.firstInstButton = instButton return instDic + + def set_activeInstrument(self,instrument, state): + if len(self.instDic) > 0: + for key in self.instDic: + if key == instrument: + self.instDic[key].get_children()[0].set_active(state) def getInstrumentList(self,category = 'all'): |