WIP on view: 6b4d782 Merge branch 'remove_modules' into UI_2.0

This commit is contained in:
Sakamoto Shiina
2023-09-04 14:48:25 +09:00
2 changed files with 12 additions and 0 deletions

View File

@@ -417,7 +417,9 @@ view.register(
# Transcription Tab (Mic) # Transcription Tab (Mic)
"callback_set_mic_host": callbackSetMicHost, "callback_set_mic_host": callbackSetMicHost,
"list_mic_host": ["list_mic_host"],
"callback_set_mic_device": callbackSetMicDevice, "callback_set_mic_device": callbackSetMicDevice,
"list_mic_device": ["list_mic_device"],
"callback_set_mic_energy_threshold": callbackSetMicEnergyThreshold, "callback_set_mic_energy_threshold": callbackSetMicEnergyThreshold,
"callback_set_mic_dynamic_energy_threshold": callbackSetMicDynamicEnergyThreshold, "callback_set_mic_dynamic_energy_threshold": callbackSetMicDynamicEnergyThreshold,
"callback_check_mic_threshold": callbackCheckMicThreshold, "callback_check_mic_threshold": callbackCheckMicThreshold,

10
view.py
View File

@@ -276,7 +276,12 @@ class View():
# Transcription Tab (Mic) # Transcription Tab (Mic)
vrct_gui.config_window.CALLBACK_SET_MIC_HOST = config_window["callback_set_mic_host"] vrct_gui.config_window.CALLBACK_SET_MIC_HOST = config_window["callback_set_mic_host"]
# vrct_gui.config_window.LIST_MIC_HOST = config_window["list_mic_host"]
self.updateList_MicHost(vrct_gui.config_window.LIST_MIC_HOST)
vrct_gui.config_window.CALLBACK_SET_MIC_DEVICE = config_window["callback_set_mic_device"] vrct_gui.config_window.CALLBACK_SET_MIC_DEVICE = config_window["callback_set_mic_device"]
vrct_gui.config_window.LIST_MIC_DEVISE = config_window["list_mic_device"]
vrct_gui.config_window.CALLBACK_SET_MIC_ENERGY_THRESHOLD = config_window["callback_set_mic_energy_threshold"] vrct_gui.config_window.CALLBACK_SET_MIC_ENERGY_THRESHOLD = config_window["callback_set_mic_energy_threshold"]
vrct_gui.config_window.CALLBACK_SET_MIC_DYNAMIC_ENERGY_THRESHOLD = config_window["callback_set_mic_dynamic_energy_threshold"] vrct_gui.config_window.CALLBACK_SET_MIC_DYNAMIC_ENERGY_THRESHOLD = config_window["callback_set_mic_dynamic_energy_threshold"]
vrct_gui.config_window.CALLBACK_CHECK_MIC_THRESHOLD = config_window["callback_check_mic_threshold"] vrct_gui.config_window.CALLBACK_CHECK_MIC_THRESHOLD = config_window["callback_check_mic_threshold"]
@@ -414,4 +419,9 @@ class View():
vrct_gui.config_window.settings.IS_CONFIG_WINDOW_COMPACT_MODE = config.IS_CONFIG_WINDOW_COMPACT_MODE vrct_gui.config_window.settings.IS_CONFIG_WINDOW_COMPACT_MODE = config.IS_CONFIG_WINDOW_COMPACT_MODE
vrct_gui.config_window.reloadConfigWindowSettingBoxContainer() vrct_gui.config_window.reloadConfigWindowSettingBoxContainer()
def updateList_MicHost(self, list__mic_host):
vrct_gui.config_window.LIST_MIC_HOST = list__mic_host
view = View() view = View()