diff --git a/consolegui/application/LeftMenu.py b/consolegui/application/LeftMenu.py index 668141b..946668f 100755 --- a/consolegui/application/LeftMenu.py +++ b/consolegui/application/LeftMenu.py @@ -480,4 +480,4 @@ class LeftMenu(QtGui.QScrollArea): if self.check_step_thread.isRunning(): self.check_step_thread.close() self.check_step_thread.wait() - event.accept() \ No newline at end of file + event.accept() diff --git a/consolegui/application/mainframe.py b/consolegui/application/mainframe.py index 8dcaa9e..f001ba5 100755 --- a/consolegui/application/mainframe.py +++ b/consolegui/application/mainframe.py @@ -179,7 +179,7 @@ class MainFrame(QtGui.QWidget): self.add_element_label (field, x, y) x += 1 - elif field.element == 'error': + elif field.element in ['error','pwderror']: error_lbl = ErrorLabel(self, field.label) error_lbl.setStyleSheet("QLabel {color: red;}") error_lbl.show() @@ -1194,7 +1194,7 @@ class MainFrame(QtGui.QWidget): for res in result[0]: meth_result.append(ReturnedMessage(res.type, res.field, \ res.message, res.expert)) - if res.type == 'error' or res.type == 'pwderror': + if res.type in ['error', 'pwderror']: error = True self.ClientObj.param_objects[self.method_name] \ ['error'] = meth_result @@ -1884,7 +1884,7 @@ class MainFrame(QtGui.QWidget): gb_layout.addWidget(label, x, y, 1, 2) x += 1 - elif field.element == 'error': + elif field.element in ['error','pwderror']: error_lbl = ErrorLabel(self, field.label) error_lbl.setStyleSheet("QLabel {color: red;}") error_lbl.show()