Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Edit/MainWindow.py
diff options
context:
space:
mode:
Diffstat (limited to 'Edit/MainWindow.py')
-rw-r--r--Edit/MainWindow.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/Edit/MainWindow.py b/Edit/MainWindow.py
index 6f6185c..ad42a25 100644
--- a/Edit/MainWindow.py
+++ b/Edit/MainWindow.py
@@ -1102,7 +1102,7 @@ class MainWindow( SubActivity ):
else: return "draw"
def handleKeyboardRecordButton( self, widget, data=None ):
- self.kb_record = self.GUI["2keyRecordButton"].get_active()
+ self.kb_record = widget.get_active()
def pickInstrument( self, widget, num ):
if widget.get_active(): # show the panel
@@ -1650,7 +1650,6 @@ class MainWindow( SubActivity ):
ofilename = chooser.get_filename()
if ofilename[-4:] != '.tam':
ofilename += '.tam'
- print 'INFO: serialize to file %s' % ofilename
try:
ofile = open(ofilename, 'w')
ofilestream = ControlStream.TamTamOStream (ofile)
@@ -2064,6 +2063,11 @@ class MainWindow( SubActivity ):
elif self.context == CONTEXT.TRACK: self.GUI["2trackBox"].show()
else: self.GUI["2noteBox"].show()
+ if self.context == CONTEXT.NOTE:
+ self._mainToolbar.generationButton.set_sensitive(False)
+ else:
+ self._mainToolbar.generationButton.set_sensitive(True)
+
def getContext(self):
return self.context