[refactor] code cleanup (WIP)

This commit is contained in:
Marcel Paffrath 2022-03-09 14:28:30 +01:00
parent 9cef22b74b
commit 79f3d40714
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ class MplCanvas(FigureCanvas):
class Array_map(QtWidgets.QWidget):
def __init__(self, parent, metadata, parameter=None, axes=None, annotate=True, pointsize=25.,
linewidth=1.5, width=5e6, height=2e6):
QtWidgets.QWidget.__init__(self)
QtWidgets.QWidget.__init__(self, parent=parent)
assert (parameter is not None or parent is not None), 'either parent or parameter has to be set'
# set properties

View File

@ -4606,7 +4606,7 @@ class PropertiesDlg(QDialog):
self._current_values.append(values)
def reset_current(self):
for values in self._current_values():
for values in self._current_values:
self.setValues(values)
@staticmethod