新增快捷键设置功能,优化用户操作体验
This commit is contained in:
@ -347,6 +347,14 @@ class MainWindow_label_check(QMainWindow):
|
|||||||
self.ui.spinBox_maxRange.editingFinished.connect(self.__update_config__)
|
self.ui.spinBox_maxRange.editingFinished.connect(self.__update_config__)
|
||||||
self.ui.spinBox_moveSpeed.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
|
@overrides
|
||||||
def closeEvent(self, event):
|
def closeEvent(self, event):
|
||||||
reply = QMessageBox.question(self, '确认', '确认退出吗?', QMessageBox.Yes | QMessageBox.No, QMessageBox.No)
|
reply = QMessageBox.question(self, '确认', '确认退出吗?', QMessageBox.Yes | QMessageBox.No, QMessageBox.No)
|
||||||
|
|||||||
@ -199,6 +199,10 @@ class Params:
|
|||||||
LABEL_CHECK_LABEL_TRANSPARENCY: float = 0.2
|
LABEL_CHECK_LABEL_TRANSPARENCY: float = 0.2
|
||||||
LABEL_CHECK_ACTION_LABEL_MULTIPLE_SHORTCUT_KEY: str = "Z"
|
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_FILE_PATH: str = "./config/Config_precisely_align.yaml"
|
||||||
PRECISELY_ALIGN_CONFIG_NEW_CONTENT: dict = {
|
PRECISELY_ALIGN_CONFIG_NEW_CONTENT: dict = {
|
||||||
|
|||||||
Reference in New Issue
Block a user