diff options
author | emkael <emkael@tlen.pl> | 2019-07-22 11:52:38 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2019-07-22 11:52:38 +0200 |
commit | 8c0b4f0f0ea0fddcdad348fb0c5a9f546375ec29 (patch) | |
tree | b06936a260935479b88da715c04a716f5cca98f3 /jfr_playoff/gui/__init__.py | |
parent | 8bf96412b75689c578f5690dd0974304265d7fea (diff) |
Ordered dictionaries for config export
Diffstat (limited to 'jfr_playoff/gui/__init__.py')
-rw-r--r-- | jfr_playoff/gui/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jfr_playoff/gui/__init__.py b/jfr_playoff/gui/__init__.py index 551aec2..b563493 100644 --- a/jfr_playoff/gui/__init__.py +++ b/jfr_playoff/gui/__init__.py @@ -1,6 +1,7 @@ #coding=utf-8 import codecs, copy, json, os, sys +from collections import OrderedDict import tkinter as tk from tkinter import ttk @@ -130,7 +131,7 @@ class PlayoffGUI(tk.Tk): self.after(0, self._dirty.set, False) def getConfig(self): - config = {} # TODO: OrderderDict, everywhere + config = OrderedDict() for tab in self.tabs.values(): tabConfig = tab.getConfig() if tabConfig is not None: |