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

Method __init__

Widgets/Dialogs/UpdateDialog.py:24–37  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

22class UpdateDialog(MoveDialog, Ui_FormUpdateDialog):
23
24 def __init__(self, *args, **kwargs):
25 super(UpdateDialog, self).__init__(*args, **kwargs)
26 self.setupUi(self)
27 # 关闭后自动销毁
28 self.setAttribute(Qt.WA_DeleteOnClose, True)
29 # 背景透明
30 self.setAttribute(Qt.WA_TranslucentBackground, True)
31 # 无边框
32 self.setWindowFlags(self.windowFlags() | Qt.FramelessWindowHint)
33 # 加载鼠标样式
34 ThemeManager.loadCursor(self)
35 Signals.updateTextChanged.connect(self.onUpdateTextChanged)
36 Signals.updateProgressChanged.connect(self.onUpdateProgressChanged)
37 Signals.updateFinished.connect(self.labelMessage.setText)
38
39 def onUpdateTextChanged(self, ver1, ver2, text):
40 self.labelMessage.setText(

Callers

nothing calls this directly

Calls 2

loadCursorMethod · 0.80
setupUiMethod · 0.45

Tested by

no test coverage detected