diff options
| author | Brianna | 2017-06-03 15:41:57 -0400 |
|---|---|---|
| committer | GitHub | 2017-06-03 15:41:57 -0400 |
| commit | 2d515540aa5f22a6027a86ff616f32ab5f7b0b1d (patch) | |
| tree | 189621bad9aadf923271445b311dd4866f41a2de /core.py | |
| parent | aae04194a0cebaa156c29fa3d9b3405a51b75092 (diff) | |
| parent | 2cbae481c5216f9adedb135fec077370969bac36 (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_) |
