diff options
Diffstat (limited to 'jfr_playoff/gui/frames')
-rw-r--r-- | jfr_playoff/gui/frames/visual.py | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/jfr_playoff/gui/frames/visual.py b/jfr_playoff/gui/frames/visual.py index 375025d..2f6a5a2 100644 --- a/jfr_playoff/gui/frames/visual.py +++ b/jfr_playoff/gui/frames/visual.py @@ -365,18 +365,11 @@ class PositionStyleFrame(RepeatableFrame): self.setValue({}) def setValue(self, value): - if 'class' in value: - self.name.set(value['class']) - else: - self.name.set('') - if 'positions' in value: - self.positionBtn.setPositions(value['positions']) - else: - self.positionBtn.setPositions([]) - if 'caption' in value: - self.description.set(value['caption']) - else: - self.description.set('') + self.name.set(value['class'] if 'class' in value else '') + self.positionBtn.setPositions( + value['positions'] if 'positions' in value else []) + self.description.set(value['caption'] if 'caption' in value else '') + class PositionStylesFrame(ScrollableFrame): def renderContent(self, container): |