more better shortcuts
All checks were successful
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Build distribution 📦 (push) Successful in -40s
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to PyPI (push) Has been skipped

This commit is contained in:
Brendan Haines 2024-12-18 23:59:45 -07:00
parent 5c4f7e5c97
commit d637fb73ee

View File

@ -136,15 +136,15 @@ class MainWindow(QMainWindow):
action_load_config = QAction("&Open Configuration", self) action_load_config = QAction("&Open Configuration", self)
menu_file.addAction(action_load_config) menu_file.addAction(action_load_config)
action_load_config.triggered.connect(self.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) action_save_config = QAction("&Save Configuration", self)
menu_file.addAction(action_save_config) menu_file.addAction(action_save_config)
action_save_config.triggered.connect(self.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) action_saveas_config = QAction("Save Configuration &As", self)
menu_file.addAction(action_saveas_config) menu_file.addAction(action_saveas_config)
action_saveas_config.triggered.connect(self.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") menu_stimulus = QMenu("&Stimulus")
menubar.addMenu(menu_stimulus) menubar.addMenu(menu_stimulus)