diff --git a/sohstationviewer/view/db_config/add_edit_single_channel_dialog.py b/sohstationviewer/view/db_config/add_edit_single_channel_dialog.py index 8a760224e45066da8b524b7155fcfcb4d87142f8..aece8072b5969508bd034478bb5aa8bd03ef99ac 100755 --- a/sohstationviewer/view/db_config/add_edit_single_channel_dialog.py +++ b/sohstationviewer/view/db_config/add_edit_single_channel_dialog.py @@ -72,14 +72,14 @@ class AddEditSingleChannelDialog(QDialog): "added to channel name to be displayed") # convert factor to change from count to actual value - self.convesion_lnedit = QtWidgets.QLineEdit(self) - self.convesion_lnedit.setPlaceholderText( + self.conversion_lnedit = QtWidgets.QLineEdit(self) + self.conversion_lnedit.setPlaceholderText( "to convert from count to actual value" ) validator = QtGui.QDoubleValidator(0.0, 5.0, 6) validator.setNotation(QtGui.QDoubleValidator.StandardNotation) - self.convesion_lnedit.setValidator(validator) - self.convesion_lnedit.setText('1') + self.conversion_lnedit.setValidator(validator) + self.conversion_lnedit.setText('1') # channel's unit self.unit_lnedit = QtWidgets.QLineEdit(self) @@ -224,7 +224,7 @@ class AddEditSingleChannelDialog(QDialog): self.label_lnedit.setText(self.channel_info['label']) - self.convesion_lnedit.setText( + self.conversion_lnedit.setText( str(float(self.channel_info['convertFactor']))) self.unit_lnedit.setText(self.channel_info['unit'])