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

Method __init__

QMenu/MultiSelect.py:21–30  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

19class Window(QWidget):
20
21 def __init__(self, *args, **kwargs):
22 super(Window, self).__init__(*args, **kwargs)
23 layout = QVBoxLayout(self)
24 self.labelInfo = QLabel(self)
25 self.button = QPushButton('带按钮的菜单', self)
26 layout.addWidget(self.labelInfo)
27 layout.addWidget(self.button)
28
29 # 添加菜单
30 self._initMenu()
31
32 def _initMenu(self):
33 # 创建菜单

Callers

nothing calls this directly

Calls 2

_initMenuMethod · 0.95
addWidgetMethod · 0.80

Tested by

no test coverage detected