Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TamTamEdit.activity/Edit/MainWindow.py
diff options
context:
space:
mode:
authorNat <natcl@hotmail.com>2007-09-20 20:05:19 (GMT)
committer Nat <natcl@hotmail.com>2007-09-20 20:05:19 (GMT)
commit3f04e198e432714701cbdabf7ff244b29a960724 (patch)
treefec75d4b5e2290cffad7157b626cc234d1764011 /TamTamEdit.activity/Edit/MainWindow.py
parentf16a2f59f637ad102a3a3cad09f713c2565a5164 (diff)
instrumentPalette
Diffstat (limited to 'TamTamEdit.activity/Edit/MainWindow.py')
-rw-r--r--TamTamEdit.activity/Edit/MainWindow.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/TamTamEdit.activity/Edit/MainWindow.py b/TamTamEdit.activity/Edit/MainWindow.py
index c890224..f828d6b 100644
--- a/TamTamEdit.activity/Edit/MainWindow.py
+++ b/TamTamEdit.activity/Edit/MainWindow.py
@@ -877,11 +877,13 @@ class MainWindow( gtk.EventBox ):
def pickInstrument( self, widget, num, primary = True ):
self.last_clicked_instTrackID = num
self.last_clicked_instPrimary = primary
- #self.instrumentPanel.selectFirstCat()
- #if primary or self.trackInstrument2[num] == None:
- #self.instrumentPanel.set_activeInstrument( self.trackInstrument[num].name, True )
- #else:
- #self.instrumentPanel.set_activeInstrument( self.trackInstrument2[num].name, True )
+ self.instrumentPanel.selectFirstCat()
+ if primary or self.trackInstrument2[num] == None:
+ self.instrumentPanel.set_activeInstrument( self.trackInstrument[num].name, True )
+ exec 'self.GUI["2instrument%sPalette"].setInstrument(self.trackInstrument[num].name)' % str(num+1)
+ print self.trackInstrument[num].name
+ else:
+ self.instrumentPanel.set_activeInstrument( self.trackInstrument2[num].name, True )
#winLoc = self.parent.window.get_position()
#alloc = widget.parent.get_allocation()
#x = alloc.x + alloc.width + winLoc[0]
@@ -2183,6 +2185,7 @@ class instrumentPalette( Popup ):
def handleInstrumentChange(self, widget):
instrument = widget.props.value
self.edit.playInstrumentNote(instrument)
+ self.edit.pickInstrument(widget = None, num = self.trackID)
self.edit.donePickInstrument(instrument)
def handleCategoryChange(self, widget):