add a button in a "qaction" qmenu code example
Example: How to give a QMenuBar button an action?
self.action = QAction(self)
self.action.setText("Action")
self.menubar.addAction(self.action)
self.action.triggered.connect(self.function)
self.action = QAction(self)
self.action.setText("Action")
self.menubar.addAction(self.action)
self.action.triggered.connect(self.function)