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 4a49d83..b6443d5 100644
--- a/jfr_playoff/gui/tabs.py
+++ b/jfr_playoff/gui/tabs.py
@@ -347,6 +347,16 @@ class StyleTab(PlayoffTab):
container, vertical=True)
self.positionStylesFrame.pack(side=tk.TOP, fill=tk.BOTH, expand=True)
+ def setValues(self, config):
+ if 'canvas' in config:
+ self.linesFrame.setValues(config['canvas'])
+ else:
+ self.linesFrame.setValues({})
+ if 'position_styles' in config:
+ self.positionStylesFrame.setValues(config['position_styles'])
+ else:
+ self.positionStylesFrame.setValues([])
+
class TranslationsTab(PlayoffTab):
@property
def title(self):