aboutsummaryrefslogtreecommitdiff
path: root/core.py
diff options
context:
space:
mode:
authorBrianna2017-06-03 15:41:57 -0400
committerGitHub2017-06-03 15:41:57 -0400
commit2d515540aa5f22a6027a86ff616f32ab5f7b0b1d (patch)
tree189621bad9aadf923271445b311dd4866f41a2de /core.py
parentaae04194a0cebaa156c29fa3d9b3405a51b75092 (diff)
parent2cbae481c5216f9adedb135fec077370969bac36 (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_)