9 |
9 |
10 from __future__ import unicode_literals |
10 from __future__ import unicode_literals |
11 |
11 |
12 import os |
12 import os |
13 |
13 |
14 from PyQt5.QtCore import pyqtSlot |
14 from PyQt5.QtCore import pyqtSlot, Qt |
15 from PyQt5.QtWidgets import QDialog, QStyle |
15 from PyQt5.QtWidgets import QDialog, QStyle |
16 |
16 |
17 from .Ui_ErrorLogDialog import Ui_ErrorLogDialog |
17 from .Ui_ErrorLogDialog import Ui_ErrorLogDialog |
18 |
18 |
19 |
19 |
30 (boolean) |
30 (boolean) |
31 @param parent reference to the parent widget (QWidget) |
31 @param parent reference to the parent widget (QWidget) |
32 """ |
32 """ |
33 super(ErrorLogDialog, self).__init__(parent) |
33 super(ErrorLogDialog, self).__init__(parent) |
34 self.setupUi(self) |
34 self.setupUi(self) |
|
35 self.setWindowFlags(Qt.Window) |
35 |
36 |
36 pixmap = self.style().standardIcon(QStyle.SP_MessageBoxQuestion)\ |
37 pixmap = self.style().standardIcon(QStyle.SP_MessageBoxQuestion)\ |
37 .pixmap(32, 32) |
38 .pixmap(32, 32) |
38 self.icon.setPixmap(pixmap) |
39 self.icon.setPixmap(pixmap) |
39 |
40 |