From d637fb73ee2c7654e70c7e602017a79811a6d0f7 Mon Sep 17 00:00:00 2001 From: Brendan Haines Date: Wed, 18 Dec 2024 23:59:45 -0700 Subject: [PATCH] more better shortcuts --- charon_vna/gui.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/charon_vna/gui.py b/charon_vna/gui.py index a561353..d73be6e 100644 --- a/charon_vna/gui.py +++ b/charon_vna/gui.py @@ -136,15 +136,15 @@ class MainWindow(QMainWindow): action_load_config = QAction("&Open Configuration", self) menu_file.addAction(action_load_config) action_load_config.triggered.connect(self.load_config) - QShortcut(QKeySequence("Ctrl+O"), self).activated.connect(self.load_config) + action_load_config.setShortcut(QKeySequence("Ctrl+O")) action_save_config = QAction("&Save Configuration", self) menu_file.addAction(action_save_config) action_save_config.triggered.connect(self.save_config) - QShortcut(QKeySequence("Ctrl+S"), self).activated.connect(self.save_config) + action_save_config.setShortcut(QKeySequence("Ctrl+S")) action_saveas_config = QAction("Save Configuration &As", self) menu_file.addAction(action_saveas_config) action_saveas_config.triggered.connect(self.saveas_config) - QShortcut(QKeySequence("Ctrl+Shift+S"), self).activated.connect(self.saveas_config) + action_saveas_config.setShortcut(QKeySequence("Ctrl+Shift+S")) menu_stimulus = QMenu("&Stimulus") menubar.addMenu(menu_stimulus)