From 37a2b34d2dd68092196e391b8ccc08c092f9912a Mon Sep 17 00:00:00 2001 From: emkael Date: Sun, 21 Jul 2019 17:09:33 +0200 Subject: Setting GUI values for manual team settings in config --- jfr_playoff/gui/frames/team.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/jfr_playoff/gui/frames/team.py b/jfr_playoff/gui/frames/team.py index 2a19866..cc474b4 100644 --- a/jfr_playoff/gui/frames/team.py +++ b/jfr_playoff/gui/frames/team.py @@ -38,6 +38,16 @@ class ManualTeamRow(RepeatableFrame): flag if len(flag) else None, position ] + def setValue(self, value): + self.fullname.set(value[0]) + self.shortname.set(value[1]) + if len(value) > 2: + if value[2] is not None: + self.flag.set(value[2]) + if len(value) > 3: + if value[3] is not None: + self.position.set(value[3]) + def _changeNotify(self, *args): self.winfo_toplevel().event_generate( '<>', when='tail') -- cgit v1.2.3