mirror of
https://github.com/nqrduck/nqrduck-measurement.git
synced 2024-12-22 15:47:51 +00:00
Linting.
This commit is contained in:
parent
be2e895c57
commit
0cd3f915f8
2 changed files with 11 additions and 3 deletions
|
@ -233,8 +233,13 @@ class MeasurementController(ModuleController):
|
|||
|
||||
@pyqtSlot()
|
||||
def change_displayed_measurement(self, measurement=None) -> None:
|
||||
"""Change the displayed measurement."""
|
||||
"""Change the displayed measurement.
|
||||
|
||||
If no measurement is provided, the displayed measurement is changed to the selected measurement in the selection box.
|
||||
|
||||
Args:
|
||||
measurement (Measurement, optional): The measurement to display. Defaults to None.
|
||||
"""
|
||||
if not self.module.model.measurements:
|
||||
logger.debug("No measurements to display.")
|
||||
return
|
||||
|
@ -271,7 +276,9 @@ class MeasurementController(ModuleController):
|
|||
else:
|
||||
self.module.model.displayed_measurement = None
|
||||
|
||||
def edit_measurement(self, old_measurement : Measurement, new_measurement : Measurement) -> None:
|
||||
def edit_measurement(
|
||||
self, old_measurement: Measurement, new_measurement: Measurement
|
||||
) -> None:
|
||||
"""Edit a measurement.
|
||||
|
||||
Args:
|
||||
|
|
|
@ -409,12 +409,13 @@ class MeasurementView(ModuleView):
|
|||
super().hide()
|
||||
|
||||
class MeasurementEdit(QDialog):
|
||||
"""This dialog is displayed when the measurement edit button is clicked.
|
||||
"""This dialog is displayed when the measurement edit button is clicked.
|
||||
|
||||
It allows the user to edit the measurement parameters (e.g. name, ...)
|
||||
"""
|
||||
|
||||
def __init__(self, measurement, parent = None) -> None:
|
||||
"""Initialize the dialog."""
|
||||
super().__init__(parent)
|
||||
self.setParent(parent)
|
||||
|
||||
|
|
Loading…
Reference in a new issue