diff options
author | emkael <emkael@tlen.pl> | 2019-06-27 12:02:54 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2019-06-27 12:02:54 +0200 |
commit | ad761be1a1bfed57ba1d91ce39819f0e49821240 (patch) | |
tree | e20a6c0a37be378230a2c2728b0149de8579a354 /jfr_playoff/gui/tabs.py | |
parent | 60e43433bffcbd410829f4c4baa508b78fe288b8 (diff) |
Visual setting tab value setting
Diffstat (limited to 'jfr_playoff/gui/tabs.py')
-rw-r--r-- | jfr_playoff/gui/tabs.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/jfr_playoff/gui/tabs.py b/jfr_playoff/gui/tabs.py index b6443d5..e9685f9 100644 --- a/jfr_playoff/gui/tabs.py +++ b/jfr_playoff/gui/tabs.py @@ -331,6 +331,16 @@ class VisualTab(PlayoffTab): self.positionFrame = BoxPositionsFrame(container, vertical=True) self.positionFrame.pack(side=tk.TOP, fill=tk.BOTH, expand=True) + def setValues(self, config): + if 'page' in config: + self.settingsFrame.setValues(config['page']) + else: + self.settingsFrame.setValues({}) + if 'canvas' in config and 'box_positioning' in config['canvas']: + self.positionFrame.setValues(config['canvas']['box_positioning']) + else: + self.positionFrame.setValues({}) + class StyleTab(PlayoffTab): @property def title(self): |