From 82271182ba7c19f1f194fa7e6528d779b583d5a6 Mon Sep 17 00:00:00 2001 From: Milan Suman Date: Sat, 19 Mar 2022 18:38:45 +0530 Subject: [PATCH] added menus --- gui_handler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gui_handler.py b/gui_handler.py index 9e119a9..b329a4d 100644 --- a/gui_handler.py +++ b/gui_handler.py @@ -1,4 +1,5 @@ from PySide6 import QtWidgets +import gui_helper import util app = QtWidgets.QApplication([]) @@ -43,7 +44,8 @@ class Window(QtWidgets.QMainWindow): elif inner == None: menu_item.addSeparator() else: - menu_item.addAction(inner) + item = menu_item.addAction(inner) + item.triggered.connect(gui_helper.data()) #TODO: This needs to run in a thread but Qt really doesn't want it to. There are two ways around this: