You can add a quit option to the menu with
action4 = QAction("Quit")
action4.triggered.connect(app.quit)
menu.addAction(action4)
You can add a quit option to the menu with
action4 = QAction("Quit")
action4.triggered.connect(app.quit)
menu.addAction(action4)