summaryrefslogtreecommitdiff
path: root/jfr_playoff/gui/frames/translations.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-07-07 20:45:05 +0200
committeremkael <emkael@tlen.pl>2019-07-07 20:45:05 +0200
commit4f55701e1b291a9a6da9eb7aef5802e6bc20cbf0 (patch)
tree8468abc56148f0abd27ac3e2bc40961ddd8d4c11 /jfr_playoff/gui/frames/translations.py
parente563236fb07628dfec57f7cd887b63f4d87e2067 (diff)
Numeric values and spinboxes handled in custom widget
Diffstat (limited to 'jfr_playoff/gui/frames/translations.py')
-rw-r--r--jfr_playoff/gui/frames/translations.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/jfr_playoff/gui/frames/translations.py b/jfr_playoff/gui/frames/translations.py
index 2429bfe..3ba660f 100644
--- a/jfr_playoff/gui/frames/translations.py
+++ b/jfr_playoff/gui/frames/translations.py
@@ -7,13 +7,15 @@ from tkinter import ttk
from ..frames import RepeatableFrame, WidgetRepeater, ScrollableFrame
from ...i18n import PLAYOFF_I18N_DEFAULTS
+from ..variables import NotifyStringVar
class TranslationRow(RepeatableFrame):
def renderContent(self):
- self.key = tk.StringVar()
+ self.key = NotifyStringVar()
+ self.value = NotifyStringVar()
+
(ttk.Entry(self, textvariable=self.key, width=40)).pack(
side=tk.LEFT, fill=tk.BOTH, expand=True)
- self.value = tk.StringVar()
(ttk.Entry(self, textvariable=self.value, width=80)).pack(
side=tk.RIGHT, fill=tk.BOTH, expand=True)