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/frames/match.py | |
parent | 8bf96412b75689c578f5690dd0974304265d7fea (diff) |
Ordered dictionaries for config export
Diffstat (limited to 'jfr_playoff/gui/frames/match.py')
-rw-r--r-- | jfr_playoff/gui/frames/match.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/jfr_playoff/gui/frames/match.py b/jfr_playoff/gui/frames/match.py index ad22a3b..caf14ea 100644 --- a/jfr_playoff/gui/frames/match.py +++ b/jfr_playoff/gui/frames/match.py @@ -1,5 +1,7 @@ #coding=utf-8 +from collections import OrderedDict + import tkinter as tk from tkinter.font import Font from tkinter import ttk @@ -171,7 +173,7 @@ class SwissSettingsFrame(RepeatableFrame): value['relative_path'] if 'relative_path' in value else '') def getValue(self): - config = {} + config = OrderedDict() if self.source.get() == self.SOURCE_DB: config['database'] = self.fetchDB.get() if self.linkRelPath.get(): @@ -423,7 +425,7 @@ class BracketMatchSettingsFrame(GuiFrame): if self.source.get() == self.SOURCE_TEAM: return self.teams else: - config = {} + config = OrderedDict() lists = { 5: self.positions, 1: self.winners, @@ -698,7 +700,7 @@ class MatchSettingsFrame(RepeatableFrame): self.bracketSettings[idx].setSelectedTeam(-1) def getValue(self): - config = {} + config = OrderedDict() config['id'] = self.matchID.get() if self.link.get(): config['link'] = self.link.get() @@ -805,7 +807,7 @@ class MatchPhaseFrame(ScrollableFrame): '<<MatchListChanged>>', when='tail') def getConfig(self): - config = {} + config = OrderedDict if self.name.get(): config['title'] = self.name.get() if self.link.get(): |