aboutsummaryrefslogtreecommitdiff
path: root/core.py
diff options
context:
space:
mode:
authortassaron2017-06-03 15:24:52 -0400
committertassaron2017-06-03 15:24:52 -0400
commit2cbae481c5216f9adedb135fec077370969bac36 (patch)
tree4f7cf572356811b156f5d472e3d8654c890957e7 /core.py
parentd417833193882acef0023a1c8e1f82b8222f89ae (diff)
autosave to help restore unsaved projects in case of a crash
Diffstat (limited to 'core.py')
-rw-r--r--core.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/core.py b/core.py
index 96f5670..16ecb35 100644
--- a/core.py
+++ b/core.py
@@ -8,6 +8,7 @@ import tempfile
from shutil import rmtree
import atexit
import time
+from collections import OrderedDict
class Core():
@@ -150,3 +151,8 @@ class Core():
def reset(self):
self.canceled = False
+
+ @staticmethod
+ def sortedStringDict(dictionary):
+ sorted_ = OrderedDict(sorted(dictionary.items(), key=lambda t: t[0]))
+ return repr(sorted_)