summaryrefslogtreecommitdiff
path: root/src/ui_widgets.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui_widgets.py')
-rw-r--r--src/ui_widgets.py19
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)