From 0519a2bbfba6a584da4661ca24abe207ade3b0f6 Mon Sep 17 00:00:00 2001 From: Sakamoto Shiina <68018796+ShiinaSakamoto@users.noreply.github.com> Date: Mon, 16 Oct 2023 10:58:38 +0900 Subject: [PATCH 1/3] =?UTF-8?q?[Remove]=20DeepL=20Auth=E3=82=AD=E3=83=BC?= =?UTF-8?q?=E5=BB=83=E6=AD=A2=E3=81=AB=E3=82=88=E3=82=8AUI=E3=81=8B?= =?UTF-8?q?=E3=82=89=E5=89=8A=E9=99=A4=E3=80=82Translation=E3=82=BF?= =?UTF-8?q?=E3=83=96=E8=87=AA=E4=BD=93=E3=81=AF=E3=82=B3=E3=83=A1=E3=83=B3?= =?UTF-8?q?=E3=83=88=E3=82=A2=E3=82=A6=E3=83=88=E3=81=A7=E5=89=8A=E9=99=A4?= =?UTF-8?q?=EF=BC=88=E5=B0=86=E6=9D=A5=E7=9A=84=E3=81=AB=E3=81=BE=E3=81=9F?= =?UTF-8?q?=E5=BF=85=E8=A6=81=E3=81=AB=E3=81=AA=E3=82=8B=E3=81=A8=E4=BA=88?= =?UTF-8?q?=E6=83=B3=E3=81=97=E3=81=A6=EF=BC=89=E3=80=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locales/en.yml | 6 ++--- locales/ja.yml | 6 ++--- view.py | 13 +++++----- .../createSideMenuAndSettingsBoxContainers.py | 26 +++++++++---------- .../createSettingBox_Translation.py | 20 +------------- 5 files changed, 27 insertions(+), 44 deletions(-) diff --git a/locales/en.yml b/locales/en.yml index 122b7edf..bf153767 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -55,7 +55,7 @@ config_window: restart_message: Apply changes with a restart. side_menu_labels: appearance: Appearance - translation: Translation + # translation: Translation transcription: Transcription transcription_mic: Mic transcription_speaker: Speaker @@ -75,8 +75,8 @@ config_window: ui_language: label: UI Language - deepl_auth_key: - label: DeepL Auth Key + # deepl_auth_key: + # label: DeepL Auth Key mic_host: label: Mic Host/Driver diff --git a/locales/ja.yml b/locales/ja.yml index 9f4d3d74..a823c097 100644 --- a/locales/ja.yml +++ b/locales/ja.yml @@ -55,7 +55,7 @@ config_window: restart_message: 再起動して変更を適用する。 side_menu_labels: appearance: デザイン - translation: 翻訳 + # translation: 翻訳 transcription: 音声認識 transcription_mic: マイク transcription_speaker: スピーカー @@ -75,8 +75,8 @@ config_window: ui_language: label: UIの言語 / UI Language - deepl_auth_key: - label: DeepL 認証キー + # deepl_auth_key: + # label: DeepL 認証キー mic_host: label: マイク(ホスト/ドライバー) diff --git a/view.py b/view.py index abcd6b38..442c66e2 100644 --- a/view.py +++ b/view.py @@ -158,6 +158,7 @@ class View(): VAR_CURRENT_ACTIVE_CONFIG_TITLE=StringVar(value=""), + # Appearance Tab VAR_LABEL_TRANSPARENCY=StringVar(value=i18n.t("config_window.transparency.label")), VAR_DESC_TRANSPARENCY=StringVar(value=i18n.t("config_window.transparency.desc")), SLIDER_RANGE_TRANSPARENCY=(50, 100), @@ -193,11 +194,11 @@ class View(): VAR_UI_LANGUAGE=StringVar(value=selectable_languages[config.UI_LANGUAGE]), - - VAR_LABEL_DEEPL_AUTH_KEY=StringVar(value=i18n.t("config_window.deepl_auth_key.label")), - VAR_DESC_DEEPL_AUTH_KEY=None, - CALLBACK_SET_DEEPL_AUTH_KEY=None, - VAR_DEEPL_AUTH_KEY=StringVar(value=""), + # Translation Tab + # VAR_LABEL_DEEPL_AUTH_KEY=StringVar(value=i18n.t("config_window.deepl_auth_key.label")), + # VAR_DESC_DEEPL_AUTH_KEY=None, + # CALLBACK_SET_DEEPL_AUTH_KEY=None, + # VAR_DEEPL_AUTH_KEY=StringVar(value=""), # Transcription Tab (Mic) @@ -413,7 +414,7 @@ class View(): # Translation Tab - self.view_variable.CALLBACK_SET_DEEPL_AUTHKEY = config_window_registers.get("callback_set_deepl_authkey", None) + # self.view_variable.CALLBACK_SET_DEEPL_AUTHKEY = config_window_registers.get("callback_set_deepl_authkey", None) # Transcription Tab (Mic) self.view_variable.CALLBACK_SET_MIC_HOST = config_window_registers.get("callback_set_mic_host", None) diff --git a/vrct_gui/config_window/widgets/createSideMenuAndSettingsBoxContainers/createSideMenuAndSettingsBoxContainers.py b/vrct_gui/config_window/widgets/createSideMenuAndSettingsBoxContainers/createSideMenuAndSettingsBoxContainers.py index f9694a1a..5fe0da61 100644 --- a/vrct_gui/config_window/widgets/createSideMenuAndSettingsBoxContainers/createSideMenuAndSettingsBoxContainers.py +++ b/vrct_gui/config_window/widgets/createSideMenuAndSettingsBoxContainers/createSideMenuAndSettingsBoxContainers.py @@ -10,7 +10,7 @@ from .setting_box_containers.setting_box_appearance import createSettingBox_Appe from .setting_box_containers.setting_box_transcription import createSettingBox_Mic, createSettingBox_Speaker from .setting_box_containers.setting_box_others import createSettingBox_Others from .setting_box_containers.setting_box_advanced_settings import createSettingBox_AdvancedSettings -from .setting_box_containers.setting_box_translation import createSettingBox_Translation +# from .setting_box_containers.setting_box_translation import createSettingBox_Translation def createSideMenuAndSettingsBoxContainers(config_window, settings, view_variable): @@ -66,18 +66,18 @@ def createSideMenuAndSettingsBoxContainers(config_window, settings, view_variabl ] }, }, - { - "side_menu_tab_attr_name": "side_menu_tab_translation", - "label_attr_name": "label_translation", - "selected_mark_attr_name": "selected_mark_translation", - "textvariable": view_variable.VAR_SIDE_MENU_LABEL_TRANSLATION, - "setting_box_container_settings": { - "setting_box_container_attr_name": "setting_box_container_translation", - "setting_boxes": [ - { "var_section_title": None, "setting_box": createSettingBox_Translation }, - ] - }, - }, + # { + # "side_menu_tab_attr_name": "side_menu_tab_translation", + # "label_attr_name": "label_translation", + # "selected_mark_attr_name": "selected_mark_translation", + # "textvariable": view_variable.VAR_SIDE_MENU_LABEL_TRANSLATION, + # "setting_box_container_settings": { + # "setting_box_container_attr_name": "setting_box_container_translation", + # "setting_boxes": [ + # { "var_section_title": None, "setting_box": createSettingBox_Translation }, + # ] + # }, + # }, { "side_menu_tab_attr_name": "side_menu_tab_transcription", "label_attr_name": "label_transcription", diff --git a/vrct_gui/config_window/widgets/createSideMenuAndSettingsBoxContainers/setting_box_containers/setting_box_translation/createSettingBox_Translation.py b/vrct_gui/config_window/widgets/createSideMenuAndSettingsBoxContainers/setting_box_containers/setting_box_translation/createSettingBox_Translation.py index d2975d0d..461b4aea 100644 --- a/vrct_gui/config_window/widgets/createSideMenuAndSettingsBoxContainers/setting_box_containers/setting_box_translation/createSettingBox_Translation.py +++ b/vrct_gui/config_window/widgets/createSideMenuAndSettingsBoxContainers/setting_box_containers/setting_box_translation/createSettingBox_Translation.py @@ -3,22 +3,4 @@ from utils import callFunctionIfCallable from .._SettingBoxGenerator import _SettingBoxGenerator def createSettingBox_Translation(setting_box_wrapper, config_window, settings, view_variable): - sbg = _SettingBoxGenerator(setting_box_wrapper, config_window, settings, view_variable) - createSettingBoxEntry = sbg.createSettingBoxEntry - - - def deepl_authkey_callback(value): - callFunctionIfCallable(view_variable.CALLBACK_SET_DEEPL_AUTHKEY, value) - - - row=0 - config_window.sb__deepl_authkey = createSettingBoxEntry( - for_var_label_text=view_variable.VAR_LABEL_DEEPL_AUTH_KEY, - for_var_desc_text=view_variable.VAR_DESC_DEEPL_AUTH_KEY, - entry_attr_name="sb__entry_deepl_authkey", - entry_width=settings.uism.RESPONSIVE_UI_SIZE_INT_300, - entry_bind__Any_KeyRelease=lambda value: deepl_authkey_callback(value), - entry_textvariable=view_variable.VAR_DEEPL_AUTH_KEY, - ) - config_window.sb__deepl_authkey.grid(row=row, pady=0) - row+=1 \ No newline at end of file + pass \ No newline at end of file From a054f05b1b9bd27b79c5f04eb8d793f002c3c76d Mon Sep 17 00:00:00 2001 From: Sakamoto Shiina <68018796+ShiinaSakamoto@users.noreply.github.com> Date: Mon, 16 Oct 2023 11:40:57 +0900 Subject: [PATCH 2/3] =?UTF-8?q?[Remove]=20Config=20Window:=20Speaker=20Dev?= =?UTF-8?q?ice=E8=87=AA=E5=8B=95=E8=A8=AD=E5=AE=9A=E3=81=AB=E3=82=88?= =?UTF-8?q?=E3=82=8A=E3=80=81UI=E3=81=8B=E3=82=89=E9=81=B8=E6=8A=9E?= =?UTF-8?q?=E9=A0=85=E7=9B=AE=E3=82=92=E5=89=8A=E9=99=A4=E3=80=82=E3=81=BE?= =?UTF-8?q?=E3=81=9F=E3=80=81config.CHOICE=5FSPEAKER=5FDEVICE=20=E3=81=8C?= =?UTF-8?q?=20"NoDevice"=E3=81=A0=E3=81=A3=E3=81=9F=E3=81=A8=E3=81=8D?= =?UTF-8?q?=E3=81=AE=E5=88=9D=E6=9C=9F=E5=87=A6=E7=90=86=E3=82=82=E5=BF=85?= =?UTF-8?q?=E8=A6=81=E3=81=AA=E3=81=8F=E3=81=AA=E3=81=A3=E3=81=9F=E3=81=AE?= =?UTF-8?q?=E3=81=A7view.py=E3=81=8B=E3=82=89=E3=82=82=E5=89=8A=E9=99=A4?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller.py | 2 -- locales/en.yml | 3 +- locales/ja.yml | 3 +- view.py | 33 +------------------ vrct_gui/_changeConfigWindowWidgetsStatus.py | 5 --- .../createSettingBox_Speaker.py | 16 --------- 6 files changed, 3 insertions(+), 59 deletions(-) diff --git a/controller.py b/controller.py index cd77fd76..e013a425 100644 --- a/controller.py +++ b/controller.py @@ -672,8 +672,6 @@ def createMainWindow(): "callback_set_mic_word_filter": callbackSetMicWordFilter, # Transcription Tab (Speaker) - # "callback_set_speaker_device": callbackSetSpeakerDevice, - "list_speaker_device": model.getListOutputDevice(), "callback_set_speaker_energy_threshold": callbackSetSpeakerEnergyThreshold, "callback_set_speaker_dynamic_energy_threshold": callbackSetSpeakerDynamicEnergyThreshold, "callback_check_speaker_threshold": callbackCheckSpeakerThreshold, diff --git a/locales/en.yml b/locales/en.yml index bf153767..85c2b5d7 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -102,8 +102,7 @@ config_window: label: Mic Word Filter desc: "It will not send the sentence if the word(s) included in the set list of words.\nHow to set: e.g. AAA,BBB,CCC" - speaker_device: - label: Speaker Device + speaker_dynamic_energy_threshold: label_for_automatic: "Speaker Energy Threshold (Current Setting: Automatic)" desc_for_automatic: "Automatically determine speaker input sensitivity." diff --git a/locales/ja.yml b/locales/ja.yml index a823c097..6b6a5705 100644 --- a/locales/ja.yml +++ b/locales/ja.yml @@ -102,8 +102,7 @@ config_window: label: ワードフィルター desc: "設定された単語を検出すると、その文章は送信されません。\n設定の例: AAA,BBB,CCC" - speaker_device: - label: スピーカー(デバイス) + speaker_dynamic_energy_threshold: label_for_automatic: "スピーカー入力感度の調整 (現在の設定: 自動)" desc_for_automatic: スピーカーの入力感度を自動的に調節する。 diff --git a/view.py b/view.py index 442c66e2..a46018b0 100644 --- a/view.py +++ b/view.py @@ -253,13 +253,6 @@ class View(): # Transcription Tab (Speaker) - VAR_LABEL_SPEAKER_DEVICE=StringVar(value=i18n.t("config_window.speaker_device.label")), - VAR_DESC_SPEAKER_DEVICE=None, - LIST_SPEAKER_DEVICE=[], - CALLBACK_SET_SPEAKER_DEVICE=None, - VAR_SPEAKER_DEVICE=StringVar(value=config.CHOICE_SPEAKER_DEVICE), - - VAR_LABEL_SPEAKER_DYNAMIC_ENERGY_THRESHOLD=StringVar(value=""), VAR_DESC_SPEAKER_DYNAMIC_ENERGY_THRESHOLD=StringVar(value=""), CALLBACK_SET_SPEAKER_DYNAMIC_ENERGY_THRESHOLD=None, @@ -432,9 +425,6 @@ class View(): self.view_variable.CALLBACK_SET_MIC_WORD_FILTER = config_window_registers.get("callback_set_mic_word_filter", None) # Transcription Tab (Speaker) - self.view_variable.CALLBACK_SET_SPEAKER_DEVICE = config_window_registers.get("callback_set_speaker_device", None) - config_window_registers.get("list_speaker_device", None) and self.updateList_SpeakerDevice(config_window_registers["list_speaker_device"]) - self.view_variable.CALLBACK_SET_SPEAKER_ENERGY_THRESHOLD = config_window_registers.get("callback_set_speaker_energy_threshold", None) self.view_variable.CALLBACK_SET_SPEAKER_DYNAMIC_ENERGY_THRESHOLD = config_window_registers.get("callback_set_speaker_dynamic_energy_threshold", None) self.view_variable.CALLBACK_CHECK_SPEAKER_THRESHOLD = config_window_registers.get("callback_check_speaker_threshold", None) @@ -484,17 +474,6 @@ class View(): ) self.replaceMicThresholdCheckButton_Disabled() - if config.CHOICE_SPEAKER_DEVICE == "NoDevice": - self.view_variable.VAR_SPEAKER_DEVICE.set("No Speaker Device Detected") - vrct_gui._changeConfigWindowWidgetsStatus( - status="disabled", - target_names=[ - "sb__optionmenu_speaker_device", - ] - ) - self.replaceSpeakerThresholdCheckButton_Disabled() - - if config.INPUT_MIC_DYNAMIC_ENERGY_THRESHOLD is True: self.closeMicEnergyThresholdWidget() @@ -789,10 +768,7 @@ class View(): def initSpeakerThresholdCheckButton(self): - if config.CHOICE_SPEAKER_DEVICE == "NoDevice": - self.replaceSpeakerThresholdCheckButton_Disabled() - else: - self.replaceSpeakerThresholdCheckButton_Passive() + self.replaceSpeakerThresholdCheckButton_Passive() @staticmethod def replaceSpeakerThresholdCheckButton_Active(): @@ -844,13 +820,6 @@ class View(): vrct_gui.config_window.sb__progressbar_x_slider__progressbar_mic_energy_threshold.set(0) - def updateList_SpeakerDevice(self, new_speaker_device_list:list): - self.view_variable.LIST_SPEAKER_DEVICE = new_speaker_device_list - vrct_gui.dropdown_menu_window.updateDropdownMenuValues( - dropdown_menu_widget_id="sb__optionmenu_speaker_device", - dropdown_menu_values=new_speaker_device_list, - ) - @staticmethod def updateSetProgressBar_SpeakerEnergy(new_speaker_energy): vrct_gui.config_window.sb__progressbar_x_slider__progressbar_speaker_energy_threshold.set(new_speaker_energy/config.MAX_SPEAKER_ENERGY_THRESHOLD) diff --git a/vrct_gui/_changeConfigWindowWidgetsStatus.py b/vrct_gui/_changeConfigWindowWidgetsStatus.py index 0263837b..95ebb187 100644 --- a/vrct_gui/_changeConfigWindowWidgetsStatus.py +++ b/vrct_gui/_changeConfigWindowWidgetsStatus.py @@ -27,11 +27,6 @@ def _changeConfigWindowWidgetsStatus(config_window, settings, view_variable, sta target_widget = config_window.sb__widgets["sb__optionmenu_mic_device"] disableOptionmenuWidget(target_widget) - case "sb__optionmenu_speaker_device": - if status == "disabled": - target_widget = config_window.sb__widgets["sb__optionmenu_speaker_device"] - disableOptionmenuWidget(target_widget) - case "sb__optionmenu_appearance_theme": if status == "disabled": target_widget = config_window.sb__widgets["sb__optionmenu_appearance_theme"] diff --git a/vrct_gui/config_window/widgets/createSideMenuAndSettingsBoxContainers/setting_box_containers/setting_box_transcription/createSettingBox_Speaker.py b/vrct_gui/config_window/widgets/createSideMenuAndSettingsBoxContainers/setting_box_containers/setting_box_transcription/createSettingBox_Speaker.py index 64ec1854..a9d1ad9b 100644 --- a/vrct_gui/config_window/widgets/createSideMenuAndSettingsBoxContainers/setting_box_containers/setting_box_transcription/createSettingBox_Speaker.py +++ b/vrct_gui/config_window/widgets/createSideMenuAndSettingsBoxContainers/setting_box_containers/setting_box_transcription/createSettingBox_Speaker.py @@ -4,7 +4,6 @@ from .._SettingBoxGenerator import _SettingBoxGenerator def createSettingBox_Speaker(setting_box_wrapper, config_window, settings, view_variable): sbg = _SettingBoxGenerator(setting_box_wrapper, config_window, settings, view_variable) - createSettingBoxDropdownMenu = sbg.createSettingBoxDropdownMenu createSettingBoxSwitch = sbg.createSettingBoxSwitch createSettingBoxProgressbarXSlider = sbg.createSettingBoxProgressbarXSlider createSettingBoxEntry = sbg.createSettingBoxEntry @@ -14,9 +13,6 @@ def createSettingBox_Speaker(setting_box_wrapper, config_window, settings, view_ callFunctionIfCallable(view_variable.CALLBACK_CHECK_SPEAKER_THRESHOLD, is_turned_on) - def optionmenu_input_speaker_device_callback(value): - callFunctionIfCallable(view_variable.CALLBACK_SET_SPEAKER_DEVICE, value) - def slider_input_speaker_energy_threshold_callback(value): callFunctionIfCallable(view_variable.CALLBACK_SET_SPEAKER_ENERGY_THRESHOLD, value) @@ -36,18 +32,6 @@ def createSettingBox_Speaker(setting_box_wrapper, config_window, settings, view_ row=0 - config_window.sb__speaker_device = createSettingBoxDropdownMenu( - for_var_label_text=view_variable.VAR_LABEL_SPEAKER_DEVICE, - for_var_desc_text=view_variable.VAR_DESC_SPEAKER_DEVICE, - optionmenu_attr_name="sb__optionmenu_speaker_device", - dropdown_menu_values=view_variable.LIST_SPEAKER_DEVICE, - dropdown_menu_width=settings.uism.RESPONSIVE_UI_SIZE_INT_500, - command=lambda value: optionmenu_input_speaker_device_callback(value), - variable=view_variable.VAR_SPEAKER_DEVICE, - ) - config_window.sb__speaker_device.grid(row=row) - row+=1 - config_window.sb__speaker_dynamic_energy_threshold = createSettingBoxSwitch( for_var_label_text=view_variable.VAR_LABEL_SPEAKER_DYNAMIC_ENERGY_THRESHOLD, for_var_desc_text=view_variable.VAR_DESC_SPEAKER_DYNAMIC_ENERGY_THRESHOLD, From bd71a96ccb1a660b9c6b76f7fbfda72c10194adf Mon Sep 17 00:00:00 2001 From: Sakamoto Shiina <68018796+ShiinaSakamoto@users.noreply.github.com> Date: Mon, 16 Oct 2023 12:34:41 +0900 Subject: [PATCH 3/3] =?UTF-8?q?[Update]=20Main=20Window:=20=E3=83=A1?= =?UTF-8?q?=E3=83=83=E3=82=BB=E3=83=BC=E3=82=B8=E3=83=9C=E3=83=83=E3=82=AF?= =?UTF-8?q?=E3=82=B9=E3=81=8B=E3=82=89=E3=83=95=E3=82=A9=E3=83=BC=E3=82=AB?= =?UTF-8?q?=E3=82=B9=E3=81=8C=E5=A4=96=E3=82=8C=E3=82=8B=E3=81=A8=E3=80=81?= =?UTF-8?q?VRChat=E4=B8=8A=E3=81=A7=E3=81=A7=E3=82=8B=E3=83=81=E3=83=A3?= =?UTF-8?q?=E3=83=83=E3=83=88=E5=85=A5=E5=8A=9B=E4=B8=AD=E3=82=92stop?= =?UTF-8?q?=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=E3=80=82=20?= =?UTF-8?q?=E3=81=9D=E3=82=8C=E3=81=AB=E4=BC=B4=E3=81=A3=E3=81=A6focus=20i?= =?UTF-8?q?n/out=E3=82=A4=E3=83=99=E3=83=B3=E3=83=88=E3=82=92controller.py?= =?UTF-8?q?=E3=81=A7=E7=AE=A1=E7=90=86=E3=80=82=20[Refactor]=20=E9=96=A2?= =?UTF-8?q?=E6=95=B0=E5=90=8D=E3=82=92=E9=81=A9=E5=88=87=E3=81=AA=E5=90=8D?= =?UTF-8?q?=E5=89=8D=E3=81=B8=E5=A4=89=E6=9B=B4=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller.py | 14 ++++++++++++-- view.py | 12 ++++++------ 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/controller.py b/controller.py index e013a425..a53bdc0f 100644 --- a/controller.py +++ b/controller.py @@ -186,6 +186,14 @@ def messageBoxPressKeyAny(e): else: model.oscStopSendTyping() +def messageBoxFocusIn(e): + view.foregroundOffIfForegroundEnabled() + +def messageBoxFocusOut(e): + view.foregroundOnIfForegroundEnabled() + if config.ENABLE_SEND_MESSAGE_TO_VRC is True: + model.oscStopSendTyping() + # func select languages def initSetLanguageAndCountry(): select = config.SELECTED_TAB_YOUR_LANGUAGES[config.SELECTED_TAB_NO] @@ -642,8 +650,10 @@ def createMainWindow(): "values": model.getListLanguageAndCountry(), "callback_selected_language_preset_tab": callbackSelectedLanguagePresetTab, - "bind_Return": messageBoxPressKeyEnter, - "bind_Any_KeyPress": messageBoxPressKeyAny, + "message_box_bind_Return": messageBoxPressKeyEnter, + "message_box_bind_Any_KeyPress": messageBoxPressKeyAny, + "message_box_bind_FocusIn": messageBoxFocusIn, + "message_box_bind_FocusOut": messageBoxFocusOut, }, config_window_registers={ diff --git a/view.py b/view.py index a46018b0..27b38138 100644 --- a/view.py +++ b/view.py @@ -372,12 +372,12 @@ class View(): entry_message_box = getattr(vrct_gui, "entry_message_box") - entry_message_box.bind("", main_window_registers.get("bind_Return")) - entry_message_box.bind("", main_window_registers.get("bind_Any_KeyPress")) + entry_message_box.bind("", main_window_registers.get("message_box_bind_Return")) + entry_message_box.bind("", main_window_registers.get("message_box_bind_Any_KeyPress")) - entry_message_box.bind("", self._foregroundOffForcefully) - entry_message_box.bind("", self._foregroundOnForcefully) + entry_message_box.bind("", main_window_registers.get("message_box_bind_FocusIn")) + entry_message_box.bind("", main_window_registers.get("message_box_bind_FocusOut")) self.updateGuiVariableByPresetTabNo(config.SELECTED_TAB_NO) @@ -523,11 +523,11 @@ class View(): - def _foregroundOnForcefully(self, _e): + def foregroundOnIfForegroundEnabled(self): if config.ENABLE_FOREGROUND: self.foregroundOn() - def _foregroundOffForcefully(self, _e): + def foregroundOffIfForegroundEnabled(self): if config.ENABLE_FOREGROUND: self.foregroundOff()