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

Method initMenu

QPropertyAnimation/MenuAnimation.py:49–56  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

47 # easingCurve 修改该变量可以实现不同的效果
48
49 def initMenu(self):
50 self._contextMenu = QMenu(self)
51 self._contextMenu.addAction('菜单1', self.hello)
52 self._contextMenu.addAction('菜单2', self.hello)
53 self._contextMenu.addAction('菜单3', self.hello)
54 self._contextMenu.addAction('菜单4', self.hello)
55 self._contextMenu.addAction('菜单5', self.hello)
56 self._contextMenu.addAction('菜单6', self.hello)
57
58
59if __name__ == '__main__':

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected