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-12 23:16:18 (GMT)
committer Nat <Nat@localhost.localdomain>2007-02-12 23:16:18 (GMT)
commit71a6f69099eddf892c92f760ea6f865358d7a569 (patch)
tree9bd298e8aad5bfdc9bb23d8343a99d86f2a592ed /Util/InstrumentPanel.py
parent7500163da85140a8b0e93f8bf1dd8845d2029240 (diff)
ImageButton fix
Diffstat (limited to 'Util/InstrumentPanel.py')
-rw-r--r--Util/InstrumentPanel.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Util/InstrumentPanel.py b/Util/InstrumentPanel.py
index 5788760..c80fb69 100644
--- a/Util/InstrumentPanel.py
+++ b/Util/InstrumentPanel.py
@@ -105,7 +105,7 @@ class InstrumentPanel(gtk.EventBox):
vbox1.set_border_width(Config.PANEL_SPACING)
micBtn = ImageRadioButton(self.firstInstButton, Config.IMAGE_ROOT + n + '.png' , Config.IMAGE_ROOT + n + 'sel.png', Config.IMAGE_ROOT + n + 'sel.png')
- micRecBtn = ImageButton(Config.IMAGE_ROOT + 'record.png' , Config.IMAGE_ROOT + 'recordhi.png', Config.IMAGE_ROOT + 'recordsel.png')
+ micRecBtn = ImageButton(Config.IMAGE_ROOT + 'record.png' , Config.IMAGE_ROOT + 'recordsel.png', Config.IMAGE_ROOT + 'recordhi.png')
self.tooltips.set_tip(micRecBtn,Tooltips.RECMIC)
micBtn.connect('clicked', self.handleInstrumentButtonClick, n)
@@ -121,7 +121,7 @@ class InstrumentPanel(gtk.EventBox):
vbox2.set_border_width(Config.PANEL_SPACING)
synthBtn = ImageRadioButton(self.firstInstButton, Config.IMAGE_ROOT + n + '.png', Config.IMAGE_ROOT + n + 'sel.png', Config.IMAGE_ROOT + n + 'sel.png')
- synthRecBtn = ImageButton(Config.IMAGE_ROOT + 'record.png' , Config.IMAGE_ROOT + 'recordhi.png', Config.IMAGE_ROOT + 'recordsel.png')
+ synthRecBtn = ImageButton(Config.IMAGE_ROOT + 'record.png' , Config.IMAGE_ROOT + 'recordsel.png', Config.IMAGE_ROOT + 'recordhi.png')
self.tooltips.set_tip(synthRecBtn,Tooltips.RECLAB)
synthBtn.connect('clicked', self.handleInstrumentButtonClick, n)
@@ -137,12 +137,12 @@ class InstrumentPanel(gtk.EventBox):
def handleMicRecButtonClick(self,widget,mic):
self.recstate = False
self.setInstrument(mic)
- self.micRec(mic)
+ if self.micRec: self.micRec(mic)
def handleSynthRecButtonClick(self,widget,lab):
self.recstate = False
self.setInstrument(lab)
- self.synthRec(lab)
+ if self.synthRec: self.synthRec(lab)
def handleRecButtonPress(self,widget,btn):
self.recstate = True