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:01:50 (GMT)
committer Nat <Nat@localhost.localdomain>2007-03-04 20:01:50 (GMT)
commit356c1d346403d336def23b7e3036dab009436913 (patch)
treee2fda162e55e993bd8aaaeb9a92ea99112969c8c /Util/InstrumentPanel.py
parent39d4dd04b711137b113078c907fd0719c79de5d2 (diff)
New icons for synthlab in Instrumnt Panel
Diffstat (limited to 'Util/InstrumentPanel.py')
-rw-r--r--Util/InstrumentPanel.py16
1 files changed, 3 insertions, 13 deletions
diff --git a/Util/InstrumentPanel.py b/Util/InstrumentPanel.py
index f7a9d79..7b0ae1c 100644
--- a/Util/InstrumentPanel.py
+++ b/Util/InstrumentPanel.py
@@ -34,8 +34,7 @@ class InstrumentPanel( gtk.EventBox ):
self.playInstrument = playInstrument
self.enterMode = enterMode
self.micRec = micRec
- self.synthRec = synthRec
-
+
if self.rowLen != rowLen:
self.rowLen = rowLen
self.prepareInstrumentTable( self.category )
@@ -221,19 +220,16 @@ class InstrumentPanel( gtk.EventBox ):
if loadStage[2] == 3:
if instrument[0:3] == 'mic':
self.tooltips.set_tip(self.loadData["RecBtn"],Tooltips.RECMIC)
- else: # if instrument[0:3] == 'lab':
- self.tooltips.set_tip(self.loadData["RecBtn"],Tooltips.RECLAB)
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)
- else: # if instrument[0:3] == 'lab':
- self.loadData["RecBtn"].connect('clicked', self.handleSynthRecButtonClick, instrument)
loadStage[2] = 4
if timeout >= 0 and time.time() > timeout: return False
self.loadData["RecBtn"].connect('pressed', self.handleRecButtonPress, self.loadData["Btn"])
- self.loadData["vbox"].pack_start(self.loadData["RecBtn"],False,False,1)
+ if instrument[0:3] != 'lab':
+ 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
@@ -353,16 +349,10 @@ class InstrumentPanel( gtk.EventBox ):
self.setInstrument(mic)
if self.micRec: self.micRec(mic)
- def handleSynthRecButtonClick(self,widget,lab):
- self.recstate = False
- self.setInstrument(lab)
- if self.synthRec: self.synthRec(lab)
-
def handleRecButtonPress(self,widget,btn):
self.recstate = True
btn.set_active(True)
-
def set_activeInstrument(self,instrument, state):
if len(self.instDic) > 0:
for key in self.instDic: