From 408a4d7996fc971cde8b378480a6f0de1e7f98aa Mon Sep 17 00:00:00 2001 From: misyaguziya Date: Tue, 5 Sep 2023 23:12:42 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=8D[Update]=20=E3=83=9E=E3=82=A4?= =?UTF-8?q?=E3=82=AF/=E3=82=B9=E3=83=94=E3=83=BC=E3=82=AB=E3=83=BC?= =?UTF-8?q?=E3=81=AE=E3=83=87=E3=83=90=E3=82=A4=E3=82=B9=E5=A4=89=E6=9B=B4?= =?UTF-8?q?=E6=99=82=E3=81=ABenergy=E3=81=AEProgressBar=E3=81=AE=E5=8B=95?= =?UTF-8?q?=E4=BD=9C=E3=82=92=E5=81=9C=E6=AD=A2=E3=81=99=E3=82=8B=E3=82=88?= =?UTF-8?q?=E3=81=86=E3=81=AB=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/main.py b/main.py index b9ae536a..bd8e3535 100644 --- a/main.py +++ b/main.py @@ -252,10 +252,16 @@ def callbackSetMicHost(value): view.updateSelected_MicDevice(config.CHOICE_MIC_DEVICE) view.updateList_MicDevice(model.getListInputDevice()) + model.stopCheckMicEnergy() + view.replaceConfigWindowMicThresholdCheckButtonToPassive() + def callbackSetMicDevice(value): print("callbackSetMicDevice", value) config.CHOICE_MIC_DEVICE = value + model.stopCheckMicEnergy() + view.replaceConfigWindowMicThresholdCheckButtonToPassive() + def callbackSetMicEnergyThreshold(value): print("callbackSetMicEnergyThreshold", int(value)) config.INPUT_MIC_ENERGY_THRESHOLD = int(value) @@ -314,6 +320,9 @@ def callbackSetSpeakerDevice(value): print("callbackSetSpeakerDevice", value) config.CHOICE_SPEAKER_DEVICE = value + model.stopCheckSpeakerEnergy() + view.replaceConfigWindowSpeakerThresholdCheckButtonToPassive() + def callbackSetSpeakerEnergyThreshold(value): print("callbackSetSpeakerEnergyThreshold", int(value)) config.INPUT_SPEAKER_ENERGY_THRESHOLD = int(value)