Wed 28 Aug 21:38:52 CEST 2024

This commit is contained in:
sbosse 2024-08-28 21:42:50 +02:00
parent 80c7ca84da
commit de1e49ab90

View 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)