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:
"""Loads the settings of the spectrometer."""
with open(path, "r") as f:
with open(path) as f:
json = f.read()
# string to dict

View file

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