MCPcopy Create free account
hub / github.com/PyQt5/PyQt / __init__

Method __init__

Demo/FramelessWindow.py:26–31  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

24class MainWindow(QWidget):
25
26 def __init__(self, *args, **kwargs):
27 super(MainWindow, self).__init__(*args, **kwargs)
28 layout = QVBoxLayout(self, spacing=0)
29 layout.setContentsMargins(0, 0, 0, 0)
30 layout.addWidget(QPushButton('按钮', self))
31 layout.addWidget(QTextEdit(self))
32
33
34# 样式

Callers

nothing calls this directly

Calls 1

addWidgetMethod · 0.80

Tested by

no test coverage detected