mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-14 03:31:50 +02:00
fix: set (Minimum, Fixed) size policy on Stop button
This commit is contained in:
@ -28,7 +28,7 @@ class StopButton(BECWidget, QWidget):
|
|||||||
self.button.setToolTip("Stop the scan queue")
|
self.button.setToolTip("Stop the scan queue")
|
||||||
else:
|
else:
|
||||||
self.button = QPushButton()
|
self.button = QPushButton()
|
||||||
self.button.setSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Expanding)
|
self.button.setSizePolicy(QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Fixed)
|
||||||
self.button.setText("Stop")
|
self.button.setText("Stop")
|
||||||
self.button.setStyleSheet(
|
self.button.setStyleSheet(
|
||||||
f"background-color: #cc181e; color: white; font-weight: bold; font-size: 12px;"
|
f"background-color: #cc181e; color: white; font-weight: bold; font-size: 12px;"
|
||||||
|
Reference in New Issue
Block a user