-
Notifications
You must be signed in to change notification settings - Fork 112
Closed
Description
The call to qtw.QMessageBox.critical(f"Could not open file: {e}")
fails with error
TypeError: critical(QWidget, str, str, buttons: Union[QMessageBox.StandardButtons, QMessageBox.StandardButton] = QMessageBox.Ok, defaultButton: QMessageBox.StandardButton = QMessageBox.NoButton): not enough arguments
critical
requires a reference to parent and a title, so this works:
qtw.QMessageBox.critical(self, "Error", f"Could not load file: {e}")
Metadata
Metadata
Assignees
Labels
No labels