summaryrefslogtreecommitdiff
path: root/jfr_playoff/gui/frames/translations.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-07-22 11:52:38 +0200
committeremkael <emkael@tlen.pl>2019-07-22 11:52:38 +0200
commit8c0b4f0f0ea0fddcdad348fb0c5a9f546375ec29 (patch)
treeb06936a260935479b88da715c04a716f5cca98f3 /jfr_playoff/gui/frames/translations.py
parent8bf96412b75689c578f5690dd0974304265d7fea (diff)
Ordered dictionaries for config export
Diffstat (limited to 'jfr_playoff/gui/frames/translations.py')
-rw-r--r--jfr_playoff/gui/frames/translations.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/jfr_playoff/gui/frames/translations.py b/jfr_playoff/gui/frames/translations.py
index e5b8940..a369159 100644
--- a/jfr_playoff/gui/frames/translations.py
+++ b/jfr_playoff/gui/frames/translations.py
@@ -1,6 +1,7 @@
#coding=utf-8
import copy
+from collections import OrderedDict
import tkinter as tk
from tkinter import ttk
@@ -37,9 +38,9 @@ class TranslationConfigurationFrame(ScrollableFrame):
self.repeater.setValue(values)
def getTranslations(self):
- return {
+ return OrderedDict({
key: value for key, value in self.repeater.getValue()
- }
+ })
def renderContent(self, container):
self.repeater = WidgetRepeater(container, TranslationRow)