MCPcopy Index your code
hub / github.com/PyQt5/PyQtClient / __init__

Method __init__

Widgets/Dialogs/ErrorDialog.py:27–39  ·  view source on GitHub ↗
(self, message, *args, reqfile='', **kwargs)

Source from the content-addressed store, hash-verified

25class 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):

Callers

nothing calls this directly

Calls 2

loadCursorMethod · 0.80
setupUiMethod · 0.45

Tested by

no test coverage detected