[bugfix] 変数名の被りを修正

This commit is contained in:
misyaguziya
2023-08-31 23:25:31 +09:00
parent a11e5f906f
commit 250be654bd
2 changed files with 10 additions and 12 deletions

View File

@@ -15,7 +15,7 @@ class View():
pass
def initializer(self, sidebar_features, language_presets, entry_message_box, entry_message_box_bind_Return, entry_message_box_bind_Any_KeyPress, config_window):
def initializer(self, sidebar_features, language_presets, entry_message_box_commands, config_window):
vrct_gui.CALLBACK_TOGGLE_TRANSLATION = sidebar_features["callback_toggle_translation"]
vrct_gui.CALLBACK_TOGGLE_TRANSCRIPTION_SEND = sidebar_features["callback_toggle_transcription_send"]
@@ -37,10 +37,8 @@ class View():
entry_message_box = getattr(vrct_gui, "entry_message_box")
# entry_message_box.bind("<Return>", lambda e: entry_message_box["bind_Return"](e))
# entry_message_box.bind("<Any-KeyPress>", lambda e: entry_message_box["bind_Any_KeyPress"](e))
entry_message_box.bind("<Return>", entry_message_box_bind_Return)
entry_message_box.bind("<Any-KeyPress>", entry_message_box_bind_Any_KeyPress)
entry_message_box.bind("<Return>", entry_message_box_commands["bind_Return"])
entry_message_box.bind("<Any-KeyPress>", entry_message_box_commands["bind_Any_KeyPress"])
entry_message_box.bind("<FocusIn>", self._foregroundOffForcefully)
entry_message_box.bind("<FocusOut>", self._foregroundOnForcefully)