diff options
author | Nat <natcl@hotmail.com> | 2007-08-09 22:45:31 (GMT) |
---|---|---|
committer | Nat <natcl@hotmail.com> | 2007-08-09 22:45:31 (GMT) |
commit | 30152afc758beaa5f73cc579badeff5f0ad20916 (patch) | |
tree | fc1be21b140d4d6985879e1796452ed0d5be6993 /Edit/MainWindow.py | |
parent | 5c2d851eedc9d932fc35e2f77fc20d0352967bdf (diff) |
Removed some prints
Diffstat (limited to 'Edit/MainWindow.py')
-rw-r--r-- | Edit/MainWindow.py | 8 |
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 |