diff options
author | emkael <emkael@tlen.pl> | 2019-07-21 17:09:33 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2019-07-21 17:09:33 +0200 |
commit | 37a2b34d2dd68092196e391b8ccc08c092f9912a (patch) | |
tree | 13f74ac1f4ad2015085f2b57528056d830fc5cf0 | |
parent | 10dfe8a4123d1dbdb0b2534ab4b0054e085b8a6e (diff) |
Setting GUI values for manual team settings in config
-rw-r--r-- | jfr_playoff/gui/frames/team.py | 10 |
1 files changed, 10 insertions, 0 deletions
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( '<<TeamSettingsChanged>>', when='tail') |