34 """! The constructor."""
36 QMessageBox.__init__(self)
37 self.setWindowFlags(Qt.FramelessWindowHint)
38 self.setMinimumSize(QSize(600,300))
39 self.setStyleSheet(
"QLabel{ \
44 background-color:qlineargradient(x1: 0, \
50 border: 2px #616763; \
58 STYLE =
"QLabel{font-size: 18pt; font-weight:40; color: #000000;} \
59 QPushButton{ background-color:qlineargradient(x1: 0, \
65 border: 2px #616763; border-radius: 5px; \
66 font-size: 16pt; font-weight:40; color: #000000;\
70 INFO = QMessageBox.Information
71 WARN = QMessageBox.Warning
72 CRITICAL = QMessageBox.Critical
73 QUESTION = QMessageBox.Question
76 """! The constructor."""
78 QMessageBox.__init__(self)
79 self.setWindowFlags(Qt.FramelessWindowHint)
80 self.setMinimumSize(QSize(600,300))
84 if type == QMessageBox.Information:
85 self.setIcon(QMessageBox.Information)
86 style_base =
"QMessageBox{ border: 2px solid bleu;}"
87 elif type == QMessageBox.Warning:
88 self.setIcon(QMessageBox.Warning)
89 style_base =
"QMessageBox{ border: 2px solid yellow;}"
90 elif type == QMessageBox.Critical:
91 self.setIcon(QMessageBox.Critical)
92 style_base =
"QMessageBox{ border: 2px solid red;}"
93 elif type == QMessageBox.Question:
94 self.setIcon(QMessageBox.Question)
95 style_base =
"QMessageBox{ border: 2px solid blue;}"
97 self.setIcon(QMessageBox.NoIcon)
99 self.setStyleSheet(style_base+self.
STYLE)
def __init__
The constructor.
Class for redefine QMessageBox.
def __init__
The constructor.