diff options
| author | tassaron | 2017-06-03 15:24:52 -0400 |
|---|---|---|
| committer | tassaron | 2017-06-03 15:24:52 -0400 |
| commit | 2cbae481c5216f9adedb135fec077370969bac36 (patch) | |
| tree | 4f7cf572356811b156f5d472e3d8654c890957e7 /core.py | |
| parent | d417833193882acef0023a1c8e1f82b8222f89ae (diff) | |
autosave to help restore unsaved projects in case of a crash
Diffstat (limited to 'core.py')
| -rw-r--r-- | core.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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_) |
