summaryrefslogtreecommitdiff
path: root/jfr_playoff/gui/frames
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-06-27 16:16:44 +0200
committeremkael <emkael@tlen.pl>2019-06-27 16:16:44 +0200
commitd3f1b7c3dca8c62fa445c05e70335cbe4419b41f (patch)
tree92519a395e7f220b31d49f75da4c34820f977862 /jfr_playoff/gui/frames
parenta3ad9e2147311ed5e2afbba0375cd95374c0217a (diff)
Code formatting
Diffstat (limited to 'jfr_playoff/gui/frames')
-rw-r--r--jfr_playoff/gui/frames/visual.py17
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):