mirror of
https://github.com/nqrduck/nqrduck-spectrometer.git
synced 2024-11-09 12:30:01 +00:00
Linting.
This commit is contained in:
parent
c14c047118
commit
979f92235c
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue