MCPcopy
hub / github.com/PyQt5/PyQt / __init__

Method __init__

QWidget/Lib/CustomPaintWidget.py:23–26  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

21class CustomPaintWidget(QWidget):
22
23 def __init__(self, *args, **kwargs):
24 super(CustomPaintWidget, self).__init__(*args, **kwargs)
25 layout = QVBoxLayout(self)
26 layout.addWidget(QLabel("我是自定义CustomPaintWidget", self))
27
28 def paintEvent(self, event):
29 # 解决QSS问题

Callers

nothing calls this directly

Calls 1

addWidgetMethod · 0.80

Tested by

no test coverage detected