Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/SynthLab
diff options
context:
space:
mode:
Diffstat (limited to 'SynthLab')
-rw-r--r--SynthLab/SynthLabWindow.py10
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'