(self, message, *args, reqfile='', **kwargs)
| 25 | class ErrorDialog(MoveDialog, Ui_FormErrorDialog): |
| 26 | |
| 27 | def __init__(self, message, *args, reqfile='', **kwargs): |
| 28 | super(ErrorDialog, self).__init__(*args, **kwargs) |
| 29 | self.reqfile = reqfile |
| 30 | self.setupUi(self) |
| 31 | # 关闭后自动销毁 |
| 32 | self.setAttribute(Qt.WA_DeleteOnClose, True) |
| 33 | # 背景透明 |
| 34 | self.setAttribute(Qt.WA_TranslucentBackground, True) |
| 35 | # 无边框 |
| 36 | self.setWindowFlags(self.windowFlags() | Qt.FramelessWindowHint) |
| 37 | # 加载鼠标样式 |
| 38 | ThemeManager.loadCursor(self) |
| 39 | self.plainTextEditDetail.appendPlainText(message) |
| 40 | |
| 41 | @pyqtSlot() |
| 42 | def on_buttonInstall_clicked(self): |
nothing calls this directly
no test coverage detected