Skip to content

Commit

Permalink
qtpy - related to previous commit, forgot PlotGUI.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon committed Oct 18, 2023
1 parent 7f984a9 commit 6e4127f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion main/PyQtGUI/gui/PlotGUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,21 @@ def __init__(self, *args, **kwargs):
self.histo_autoscale = QCheckBox("Autoscale",self)
self.logButton = QPushButton("Log", self)
self.logButton.setFixedWidth(50)
self.logButton.setStyleSheet("QPushButton { background-color: white }"
self.logButton.setStyleSheet("QPushButton { background-color: light gray }"
"QPushButton:pressed { background-color: grey }" )
self.plusButton = QPushButton("+", self)
self.plusButton.setFixedWidth(50)
self.minusButton = QPushButton("-", self)
self.minusButton.setFixedWidth(50)
self.cutoffButton = QPushButton("Cutoff", self)
self.cutoffButton.setFixedWidth(70)
self.cutoffButton.setStyleSheet("QPushButton { background-color: light gray }"
"QPushButton:pressed { background-color: grey }" )
self.customHomeButton = QPushButton("Reset", self)
self.customHomeButton.setFixedWidth(70)



spacer1 = QWidget()
spacer1.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding)
spacer2 = QWidget()
Expand All @@ -104,6 +110,7 @@ def __init__(self, *args, **kwargs):
self.toolbar.addWidget(self.plusButton)
self.toolbar.addWidget(self.minusButton)
self.toolbar.addWidget(self.logButton)
self.toolbar.addWidget(self.cutoffButton)
self.toolbar.addWidget(self.customHomeButton)
self.toolbar.addWidget(spacer1)
self.toolbar.addWidget(self.histoLabel)
Expand Down

0 comments on commit 6e4127f

Please sign in to comment.