Wrap error message instead of expanding screen to show message

This commit is contained in:
Debanjum Singh Solanky 2022-08-11 20:51:56 +03:00
parent 2646fa825b
commit b74ca1def6

View file

@ -137,6 +137,7 @@ class ConfigureScreen(QtWidgets.QDialog):
def add_error_message(self, message: str, parent_layout: QtWidgets.QLayout): def add_error_message(self, message: str, parent_layout: QtWidgets.QLayout):
"Add Error Message to Configure Screen" "Add Error Message to Configure Screen"
error_message = QtWidgets.QLabel() error_message = QtWidgets.QLabel()
error_message.setWordWrap(True)
error_message.setText(message) error_message.setText(message)
error_message.setStyleSheet("color: red") error_message.setStyleSheet("color: red")
parent_layout.addWidget(error_message) parent_layout.addWidget(error_message)