button in one row

pull/496/head
Mauro Gaioni 2022-05-06 15:17:22 +02:00
rodzic 134affab04
commit f933027af5
2 zmienionych plików z 8 dodań i 4 usunięć

Wyświetl plik

@ -46,11 +46,15 @@ class MarkerControl(Control):
self.check_delta = QCheckBox("Enable Delta Marker") self.check_delta = QCheckBox("Enable Delta Marker")
self.check_delta.toggled.connect(self.toggle_delta) self.check_delta.toggled.connect(self.toggle_delta)
self.layout.addRow(self.check_delta)
self.check_delta_reference = QCheckBox("Delta reference") self.check_delta_reference = QCheckBox("reference")
self.check_delta_reference.toggled.connect(self.toggle_delta_reference) self.check_delta_reference.toggled.connect(self.toggle_delta_reference)
self.layout.addRow(self.check_delta_reference)
layout2 = QtWidgets.QHBoxLayout()
layout2.addWidget(self.check_delta)
layout2.addWidget(self.check_delta_reference)
self.layout.addRow(layout2)
self.showMarkerButton = QtWidgets.QPushButton() self.showMarkerButton = QtWidgets.QPushButton()
self.showMarkerButton.setFixedHeight(20) self.showMarkerButton.setFixedHeight(20)

Wyświetl plik

@ -473,7 +473,7 @@ class NanoVNASaver(QtWidgets.QWidget):
m2 = None m2 = None
if self.marker_ref: if self.marker_ref:
if self.ref_data: if self.ref_data:
m2 = Marker() m2 = Marker("Reference")
m2.location = self.markers[0].location m2.location = self.markers[0].location
m2.resetLabels() m2.resetLabels()
m2.updateLabels(self.ref_data.s11, m2.updateLabels(self.ref_data.s11,