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-03-04 20:23:50 (GMT)
committer Nat <Nat@localhost.localdomain>2007-03-04 20:23:50 (GMT)
commit641f1571d227860b2b9fed21ca65a49788a4c8ad (patch)
tree53b88fa2921dff3062b5961ece55aa7696b1292a /Util/InstrumentPanel.py
parentaa8ab98e65ca4233e86e5bb5afe2b97850e0b1aa (diff)
LabButton fix
Diffstat (limited to 'Util/InstrumentPanel.py')
-rw-r--r--Util/InstrumentPanel.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/Util/InstrumentPanel.py b/Util/InstrumentPanel.py
index 7b0ae1c..3d012cc 100644
--- a/Util/InstrumentPanel.py
+++ b/Util/InstrumentPanel.py
@@ -197,7 +197,7 @@ class InstrumentPanel( gtk.EventBox ):
for i in range( loadStage[1]-1, self.loadData["len"] ):
instrument = self.instrumentList["all"][i]
- if instrument[0:3] == 'lab' or instrument[0:3] == 'mic':
+ if instrument[0:3] == 'mic':
if loadStage[2] == 0:
self.loadData["vbox"] = RoundVBox(fillcolor = Config.INST_BCK_COLOR, bordercolor = Config.PANEL_COLOR, radius = Config.PANEL_RADIUS)
@@ -218,18 +218,15 @@ class InstrumentPanel( gtk.EventBox ):
if timeout >= 0 and time.time() > timeout: return False
if loadStage[2] == 3:
- if instrument[0:3] == 'mic':
- self.tooltips.set_tip(self.loadData["RecBtn"],Tooltips.RECMIC)
+ self.tooltips.set_tip(self.loadData["RecBtn"],Tooltips.RECMIC)
self.loadData["Btn"].clickedHandler = self.loadData["Btn"].connect('clicked', self.handleInstrumentButtonClick, instrument)
- if instrument[0:3] == 'mic':
- self.loadData["RecBtn"].connect('clicked', self.handleMicRecButtonClick, instrument)
+ self.loadData["RecBtn"].connect('clicked', self.handleMicRecButtonClick, instrument)
loadStage[2] = 4
if timeout >= 0 and time.time() > timeout: return False
self.loadData["RecBtn"].connect('pressed', self.handleRecButtonPress, self.loadData["Btn"])
- if instrument[0:3] != 'lab':
- self.loadData["vbox"].pack_start(self.loadData["RecBtn"],False,False,1)
+ self.loadData["vbox"].pack_start(self.loadData["RecBtn"],False,False,1)
self.loadData["vbox"].pack_start(self.loadData["Btn"],False,False,2)
instDic[instrument] = self.loadData["vbox"]
loadStage[2] = 0