mirror of
https://github.com/nqrduck/nqrduck-autotm.git
synced 2024-12-21 23:30:27 +00:00
Fixed calibration window view for wayland.
This commit is contained in:
parent
b0ddbae9c5
commit
a6df6da1d5
1 changed files with 5 additions and 4 deletions
|
@ -143,7 +143,7 @@ class AutoTMView(ModuleView):
|
|||
It opens the calibration window.
|
||||
"""
|
||||
logger.debug("Calibration button clicked")
|
||||
self.calibration_window = self.CalibrationWindow(self.module)
|
||||
self.calibration_window = self.CalibrationWindow(self.module, self)
|
||||
self.calibration_window.show()
|
||||
|
||||
@pyqtSlot(list)
|
||||
|
@ -367,11 +367,11 @@ class AutoTMView(ModuleView):
|
|||
matching_voltage = str(self.module.model.LUT.data[frequency][0])
|
||||
self.module.controller.set_voltages(tuning_voltage, matching_voltage)
|
||||
|
||||
class CalibrationWindow(QWidget):
|
||||
class CalibrationWindow(QDialog):
|
||||
def __init__(self, module, parent=None):
|
||||
super().__init__()
|
||||
self.module = module
|
||||
super().__init__(parent)
|
||||
self.setParent(parent)
|
||||
self.module = module
|
||||
self.setWindowTitle("Calibration")
|
||||
|
||||
# Add vertical main layout
|
||||
|
@ -390,6 +390,7 @@ class AutoTMView(ModuleView):
|
|||
frequency_layout.addWidget(stop_edit)
|
||||
unit_label = QLabel("MHz")
|
||||
frequency_layout.addWidget(unit_label)
|
||||
frequency_layout.addStretch()
|
||||
|
||||
# Add horizontal layout for the calibration type
|
||||
type_layout = QHBoxLayout()
|
||||
|
|
Loading…
Reference in a new issue