summaryrefslogtreecommitdiff
path: root/jfr_playoff/gui/tabs.py
diff options
context:
space:
mode:
Diffstat (limited to 'jfr_playoff/gui/tabs.py')
-rw-r--r--jfr_playoff/gui/tabs.py10
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):