From ecf3526513b6b47ae0cbea94eb3505da4415acf0 Mon Sep 17 00:00:00 2001 From: Balthasar Reuter Date: Sat, 16 Jun 2018 23:10:21 +0200 Subject: [PATCH] flake8 compliance --- photobooth/gui/Qt5Gui/Frames.py | 4 ++-- photobooth/gui/Qt5Gui/__init__.py | 4 ++-- photobooth/gui/Qt5Gui/stylesheets/dark.qss | 4 ++++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/photobooth/gui/Qt5Gui/Frames.py b/photobooth/gui/Qt5Gui/Frames.py index bbfcd2a..f633dea 100644 --- a/photobooth/gui/Qt5Gui/Frames.py +++ b/photobooth/gui/Qt5Gui/Frames.py @@ -583,7 +583,7 @@ class Settings(QtWidgets.QFrame): num_x.setRange(1, 99) num_x.setValue(self._cfg.getInt('Picture', 'num_x')) self.add('Picture', 'num_x', num_x) - + num_y = QtWidgets.QSpinBox() num_y.setRange(1, 99) num_y.setValue(self._cfg.getInt('Picture', 'num_y')) @@ -593,7 +593,7 @@ class Settings(QtWidgets.QFrame): size_x.setRange(1, 999999) size_x.setValue(self._cfg.getInt('Picture', 'size_x')) self.add('Picture', 'size_x', size_x) - + size_y = QtWidgets.QSpinBox() size_y.setRange(1, 999999) size_y.setValue(self._cfg.getInt('Picture', 'size_y')) diff --git a/photobooth/gui/Qt5Gui/__init__.py b/photobooth/gui/Qt5Gui/__init__.py index 8e97318..c4c6ee5 100644 --- a/photobooth/gui/Qt5Gui/__init__.py +++ b/photobooth/gui/Qt5Gui/__init__.py @@ -18,7 +18,7 @@ # along with this program. If not, see . # Available style sheets as tuples of (style name, style file) -styles = (('default', 'stylesheets/default.qss'), - ('dark', 'stylesheets/dark.qss')) +styles = (('default', 'stylesheets/default.qss'), + ('dark', 'stylesheets/dark.qss')) from .PyQt5Gui import PyQt5Gui # noqa diff --git a/photobooth/gui/Qt5Gui/stylesheets/dark.qss b/photobooth/gui/Qt5Gui/stylesheets/dark.qss index 9e94741..6511227 100644 --- a/photobooth/gui/Qt5Gui/stylesheets/dark.qss +++ b/photobooth/gui/Qt5Gui/stylesheets/dark.qss @@ -10,6 +10,10 @@ QTabWidget { color: #eeeeee; } +QTabWidget::tab-bar { + alignment: center; +} + QTabBar::tab { background-color: #333333; border-style: outset;