-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from pnnl/CODEVERIFY-21
GUI: empty png bug fix
- Loading branch information
Showing
4 changed files
with
37 additions
and
13 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from PyQt6.QtWidgets import QMessageBox | ||
|
||
|
||
def send_error(window_title, text): | ||
"""Displays an error message with given text | ||
Args: | ||
text (str): text to be displayed | ||
""" | ||
error_msg = QMessageBox() | ||
error_msg.setIcon(QMessageBox.Icon.Critical) | ||
error_msg.setWindowTitle(window_title) | ||
error_msg.setText(text) | ||
error_msg.exec() |