From ea83137c32be2f7c47e6c4e4bbfaafeb0591db21 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Fri, 3 May 2019 15:56:04 +0200 Subject: Bring back basic functionality --- src/ui_widgets.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'src/ui_widgets.py') diff --git a/src/ui_widgets.py b/src/ui_widgets.py index 3babfa6..384b948 100644 --- a/src/ui_widgets.py +++ b/src/ui_widgets.py @@ -10,6 +10,13 @@ class ExpandingSpacer(QSpacerItem): super().__init__(0, 0, QSizePolicy.Minimum, \ QSizePolicy.Expanding) +class LayoutWrapper(QWidget): + def __init__(self, layout): + super().__init__() + self.setLayout(layout) + + + class MeinLabel(QLabel): def __init__(self, *args): QLabel.__init__(self, *args) @@ -21,10 +28,7 @@ class MeinGroßLabel(QLabel): self.setFont(GUI.bigfont) self.setAlignment(Qt.AlignHCenter) -class LayoutWrapper(QWidget): - def __init__(self, layout): - super().__init__() - self.setLayout(layout) + class EllipseWidget(QWidget): def __init__(self, pol): @@ -34,11 +38,8 @@ class EllipseWidget(QWidget): self.ellipse = None self.is_used = True - self.setSizePolicy(QSizePolicy(QSizePolicy.MinimumExpanding, \ - QSizePolicy.MinimumExpanding)) - - def minimumSizeHint(self): - return QSize(170, 170) + self.setSizePolicy(QSizePolicy(QSizePolicy.Expanding, \ + QSizePolicy.Expanding)) def paintEvent(self, event): P = QPainter(self) -- cgit