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

Method __init__

Widgets/Dialogs/SkinDialog.py:28–43  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

26class SkinDialog(MoveDialog, Ui_FormSkinDialog):
27
28 def __init__(self, *args, **kwargs):
29 super(SkinDialog, self).__init__(*args, **kwargs)
30 self.setupUi(self)
31 # 背景透明
32 self.setAttribute(Qt.WA_TranslucentBackground, True)
33 # 无边框
34 self.setWindowFlags(self.windowFlags() | Qt.FramelessWindowHint)
35 self.widgetBottom.setVisible(False)
36 # 预览界面
37 self.previewWidget = PreviewWidget(self.widgetSkinBg)
38 self.previewWidget.setVisible(False)
39 # 初始化信号槽
40 self._initSignals()
41 # 加载鼠标样式
42 ThemeManager.loadCursor(self)
43 self.on_tabWidgetSkinMain_currentChanged(0)
44
45 def _initSignals(self):
46 Signals.pictureItemAdded.connect(self.onPictureItemAdded)

Callers

nothing calls this directly

Calls 5

_initSignalsMethod · 0.95
PreviewWidgetClass · 0.90
loadCursorMethod · 0.80
setupUiMethod · 0.45

Tested by

no test coverage detected