From d3f1b7c3dca8c62fa445c05e70335cbe4419b41f Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 27 Jun 2019 16:16:44 +0200 Subject: Code formatting --- jfr_playoff/gui/frames/visual.py | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'jfr_playoff') 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): -- cgit v1.2.3