From cbf871ca8cd830a17aa3b7edfe4b67ee8524d5d5 Mon Sep 17 00:00:00 2001 From: marques Date: Tue, 16 Dec 2025 15:49:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=BF=AB=E6=8D=B7=E9=94=AE?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E5=8A=9F=E8=83=BD=EF=BC=8C=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=93=8D=E4=BD=9C=E4=BD=93=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- func/Module_label_check.py | 8 ++++++++ func/utils/ConfigParams.py | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/func/Module_label_check.py b/func/Module_label_check.py index a750218..260ff3b 100644 --- a/func/Module_label_check.py +++ b/func/Module_label_check.py @@ -347,6 +347,14 @@ class MainWindow_label_check(QMainWindow): self.ui.spinBox_maxRange.editingFinished.connect(self.__update_config__) self.ui.spinBox_moveSpeed.editingFinished.connect(self.__update_config__) + self.ui.pushButton_prev_move.setShortcut( + QCoreApplication.translate("MainWindow", Params.LABEL_CHECK_BTN_PREV_MOVE_SHORTCUT_KEY)) + self.ui.pushButton_next_move.setShortcut( + QCoreApplication.translate("MainWindow", Params.LABEL_CHECK_BTN_NEXT_MOVE_SHORTCUT_KEY)) + self.ui.pushButton_pause.setShortcut( + QCoreApplication.translate("MainWindow", Params.LABEL_CHECK_BTN_PAUSE_SHORTCUT_KEY) + ) + @overrides def closeEvent(self, event): reply = QMessageBox.question(self, '确认', '确认退出吗?', QMessageBox.Yes | QMessageBox.No, QMessageBox.No) diff --git a/func/utils/ConfigParams.py b/func/utils/ConfigParams.py index 78d70c1..a01dcd4 100644 --- a/func/utils/ConfigParams.py +++ b/func/utils/ConfigParams.py @@ -199,6 +199,10 @@ class Params: LABEL_CHECK_LABEL_TRANSPARENCY: float = 0.2 LABEL_CHECK_ACTION_LABEL_MULTIPLE_SHORTCUT_KEY: str = "Z" + LABEL_CHECK_BTN_PREV_MOVE_SHORTCUT_KEY = "A" + LABEL_CHECK_BTN_NEXT_MOVE_SHORTCUT_KEY = "D" + LABEL_CHECK_BTN_PAUSE_SHORTCUT_KEY = "S" + # 数据精同步 PRECISELY_ALIGN_CONFIG_FILE_PATH: str = "./config/Config_precisely_align.yaml" PRECISELY_ALIGN_CONFIG_NEW_CONTENT: dict = {