From de1e49ab905fddd7d0abf7a5b820c18c7ac7424d Mon Sep 17 00:00:00 2001 From: sbosse Date: Wed, 28 Aug 2024 21:42:50 +0200 Subject: [PATCH] Wed 28 Aug 21:38:52 CEST 2024 --- src/SimNDT/gui/Warnings.py | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/SimNDT/gui/Warnings.py diff --git a/src/SimNDT/gui/Warnings.py b/src/SimNDT/gui/Warnings.py new file mode 100644 index 0000000..afec6b3 --- /dev/null +++ b/src/SimNDT/gui/Warnings.py @@ -0,0 +1,32 @@ +__author__ = 'Miguel Molero' + + + + +import sys +from PySide.QtCore import * +from PySide.QtGui import * + + +class WarningParms(QMessageBox): + + def __init__(self, message="Please fill all parameters", parent=None): + + super(WarningParms,self).__init__(parent) + self.setText(self.tr(message)) + self.setWindowModality(Qt.WindowModal) + self.setIcon(QMessageBox.Warning) + #On Top + self.setWindowFlags(self.windowFlags() | Qt.WindowStaysOnTopHint) + + +class DoneParms(QMessageBox): + + def __init__(self, message="Done!!!!!!", parent=None): + + super(DoneParms,self).__init__(parent) + self.setText(self.tr(message)) + self.setWindowModality(Qt.WindowModal) + self.setIcon(QMessageBox.Information) + #On Top + self.setWindowFlags(self.windowFlags() | Qt.WindowStaysOnTopHint) \ No newline at end of file