diff options
author | emkael <emkael@tlen.pl> | 2019-07-07 20:45:05 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2019-07-07 20:45:05 +0200 |
commit | 4f55701e1b291a9a6da9eb7aef5802e6bc20cbf0 (patch) | |
tree | 8468abc56148f0abd27ac3e2bc40961ddd8d4c11 /jfr_playoff/gui/frames/translations.py | |
parent | e563236fb07628dfec57f7cd887b63f4d87e2067 (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.py | 6 |
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) |