diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2019-05-03 15:56:04 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2019-05-03 15:56:04 +0200 |
commit | ea83137c32be2f7c47e6c4e4bbfaafeb0591db21 (patch) | |
tree | acb0ee2dd3d29ee6d09dd29b234eb5a9b16eb469 /src/ui_widgets.py | |
parent | 5a952899e095c82ff706449ee4d3f8c5eaac7911 (diff) |
Bring back basic functionality
Diffstat (limited to 'src/ui_widgets.py')
-rw-r--r-- | src/ui_widgets.py | 19 |
1 files changed, 10 insertions, 9 deletions
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) |