Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/GUI/Core/MainWindow.py
diff options
context:
space:
mode:
authorjaberg <james@localhost.localdomain>2006-12-15 10:02:12 (GMT)
committer jaberg <james@localhost.localdomain>2006-12-15 10:02:12 (GMT)
commit140188dcc017fbd9b5527cc1d1a14f632fb4fed5 (patch)
treeaa5989a8d7506192cb2c729ec80601266e76ac8a /GUI/Core/MainWindow.py
parent465e51299ba28e692a9280549f2406005f637928 (diff)
misc
Diffstat (limited to 'GUI/Core/MainWindow.py')
-rw-r--r--GUI/Core/MainWindow.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/GUI/Core/MainWindow.py b/GUI/Core/MainWindow.py
index 20a991a..5f4e2c7 100644
--- a/GUI/Core/MainWindow.py
+++ b/GUI/Core/MainWindow.py
@@ -166,7 +166,8 @@ class MainWindow( gtk.EventBox ):
self.GUI["2transportBox"].pack_start( self.GUI["2keyboardButton"] )
self.GUI["2recordButton"] = gtk.Button("Rec")
self.GUI["2transportBox"].pack_start( self.GUI["2recordButton"] )
- self.GUI["2playButton"] = gtk.Button("Play")
+ self.GUI["2playButton"] = gtk.ToggleButton("Play")
+ self.GUI["2playButton"].connect( "toggled", self.handlePlay, "Page Play" )
self.GUI["2transportBox"].pack_start( self.GUI["2playButton"] )
self.GUI["2loopButton"] = gtk.Button("Loop")
self.GUI["2transportBox"].pack_start( self.GUI["2loopButton"] )
@@ -391,7 +392,7 @@ class MainWindow( gtk.EventBox ):
for instrumentName in instrumentFolderNames:
if not instrumentName[0: 4] == 'drum':
instrumentNames.append( instrumentName )
-
+
instrumentNames.append( 'drum1kit' )
instrumentNames.sort()
for instrumentName in instrumentNames:
@@ -572,6 +573,7 @@ class MainWindow( gtk.EventBox ):
def handleInstrumentChanged( self, data ):
(id, instrumentName) = data
self._data['track_inst'][id] = instrumentName
+ print id, instrumentName
self.noteLooper.setInstrument(id, instrumentName)
recordButton = self.instrumentRecordButtons[ id ]