diff options
author | emkael <emkael@tlen.pl> | 2019-06-27 11:03:15 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2019-06-27 11:03:45 +0200 |
commit | 60e43433bffcbd410829f4c4baa508b78fe288b8 (patch) | |
tree | 9fc4f0409c76077d2e43321b1fdac4af16d74fe4 /jfr_playoff/gui/tabs.py | |
parent | 1104824f43f9b0c9e0383baec06ae3c4760b9f8c (diff) |
Setting style settings tab values
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 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): |