This commit is contained in:
jupfi 2024-05-27 19:26:58 +02:00
parent c14c047118
commit 979f92235c
2 changed files with 3 additions and 1 deletions

View file

@ -35,7 +35,7 @@ class BaseSpectrometerController(ModuleController):
def load_settings(self, path: str) -> None: def load_settings(self, path: str) -> None:
"""Loads the settings of the spectrometer.""" """Loads the settings of the spectrometer."""
with open(path, "r") as f: with open(path) as f:
json = f.read() json = f.read()
# string to dict # string to dict

View file

@ -150,7 +150,9 @@ class BaseSpectrometerView(ModuleView):
dialog.exec() dialog.exec()
class DefaultSettingsDialog(QDialog): class DefaultSettingsDialog(QDialog):
"""Dialog to set or clear the default settings of the spectrometer."""
def __init__(self, parent=None): def __init__(self, parent=None):
"""Initializes the default settings dialog."""
super().__init__(parent) super().__init__(parent)
self.parent = parent self.parent = parent
self.setWindowTitle("Default Settings") self.setWindowTitle("Default Settings")