diff options
author | Nat <natcl@hotmail.com> | 2007-07-05 19:54:25 (GMT) |
---|---|---|
committer | Nat <natcl@hotmail.com> | 2007-07-05 19:54:25 (GMT) |
commit | 100933795b2c3e433140af7b8ffa6ff5fc513876 (patch) | |
tree | 46e4451620145db9d13b2a9dcde572c1091a3407 /SynthLab | |
parent | 06839311223289f02e1a128efeb1745fcf49ca34 (diff) |
Synthlab save
Diffstat (limited to 'SynthLab')
-rw-r--r-- | SynthLab/SynthLabWindow.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/SynthLab/SynthLabWindow.py b/SynthLab/SynthLabWindow.py index b1aa357..02bf08e 100644 --- a/SynthLab/SynthLabWindow.py +++ b/SynthLab/SynthLabWindow.py @@ -995,6 +995,11 @@ class SynthLabWindow(SubActivity): print 'ERROR: failed to save SynthLab to file %s' % chooser.get_filename() chooser.destroy() + + def handleJournalSave(self, file_path): + f = shelve.open(file_path, 'n') + self.saveState(f) + f.close() def handleLoad(self, widget, data): chooser = gtk.FileChooserDialog(title='Load SynthLab Preset',action=gtk.FILE_CHOOSER_ACTION_OPEN, buttons=(gtk.STOCK_CANCEL,gtk.RESPONSE_CANCEL,gtk.STOCK_OPEN,gtk.RESPONSE_OK)) @@ -1017,6 +1022,11 @@ class SynthLabWindow(SubActivity): print 'ERROR: failed to load SynthLab state from file %s' % chooser.get_filename() chooser.destroy() + + def handleJournalLoad(self, file_path): + f = shelve.open( file_path, 'r') + self.loadState(f) + f.close() def handleSaveTemp( self ): file = Config.PREF_DIR + '/synthTemp' |