[Chore] 変数名変更: AUTHKEY -> AUTH_KEY のように分けた。

This commit is contained in:
Sakamoto Shiina
2024-01-19 14:04:11 +09:00
parent ee7589ba93
commit 379c5bfdb6
4 changed files with 13 additions and 13 deletions

View File

@@ -14,8 +14,8 @@ def createSettingBox_Translation(setting_box_wrapper, config_window, settings, v
def optionmenu_ctranslate2_weight_type_callback(value):
callFunctionIfCallable(view_variable.CALLBACK_SET_CTRANSLATE2_WEIGHT_TYPE, value)
def deepl_authkey_callback(value):
callFunctionIfCallable(view_variable.CALLBACK_SET_DEEPL_AUTHKEY, value)
def deepl_auth_key_callback(value):
callFunctionIfCallable(view_variable.CALLBACK_SET_DEEPL_AUTH_KEY, value)
row=0
@@ -41,13 +41,13 @@ def createSettingBox_Translation(setting_box_wrapper, config_window, settings, v
row+=1
config_window.sb__deepl_authkey = createSettingBoxEntry(
config_window.sb__deepl_auth_key = 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_attr_name="sb__entry_deepl_auth_key",
entry_width=settings.uism.RESPONSIVE_UI_SIZE_INT_300,
entry_bind__Any_KeyRelease=lambda value: deepl_authkey_callback(value),
entry_bind__Any_KeyRelease=lambda value: deepl_auth_key_callback(value),
entry_textvariable=view_variable.VAR_DEEPL_AUTH_KEY,
)
config_window.sb__deepl_authkey.grid(row=row, pady=0)
config_window.sb__deepl_auth_key.grid(row=row, pady=0)
row+=1