Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Util/InstrumentPanel.py
diff options
context:
space:
mode:
authorNat <Nat@localhost.localdomain>2007-02-23 22:43:19 (GMT)
committer Nat <Nat@localhost.localdomain>2007-02-23 22:43:19 (GMT)
commit39b843401c8635ad4ab1136af46b293bf030d866 (patch)
tree734675780da5f49a8e3d20311566f33531d8ded6 /Util/InstrumentPanel.py
parent8f495a65f7d7afd957153f63a3a5c0804746e080 (diff)
MainWindow/Instrument panel stuff
Diffstat (limited to 'Util/InstrumentPanel.py')
-rw-r--r--Util/InstrumentPanel.py6
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'):