Wed 28 Aug 21:38:52 CEST 2024
This commit is contained in:
parent
80c7ca84da
commit
de1e49ab90
32
src/SimNDT/gui/Warnings.py
Normal file
32
src/SimNDT/gui/Warnings.py
Normal file
|
@ -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)
|
Loading…
Reference in New Issue
Block a user