From 6627b5e7e6b3800cbacf92de09928d9467b78ee3 Mon Sep 17 00:00:00 2001 From: misygauziya Date: Wed, 26 Jul 2023 06:48:56 +0900 Subject: [PATCH] =?UTF-8?q?[Update]=20config=20window=E3=82=92=E3=82=B0?= =?UTF-8?q?=E3=83=A9=E3=83=83=E3=83=97=E3=81=99=E3=82=8B=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VRCT.py | 9 +++++++++ window_config.py | 11 ++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/VRCT.py b/VRCT.py index 1ed48de2..bcd8fcf1 100644 --- a/VRCT.py +++ b/VRCT.py @@ -423,11 +423,20 @@ class App(CTk): self.checkbox_translation.configure(state="disabled") self.checkbox_transcription_send.configure(state="disabled") self.checkbox_transcription_receive.configure(state="disabled") + self.checkbox_foreground.configure(state="disabled") + self.tabview_logs.configure(state="disabled") + self.textbox_message_log.configure(state="disabled") + self.textbox_message_send_log.configure(state="disabled") + self.textbox_message_receive_log.configure(state="disabled") + self.textbox_message_system_log.configure(state="disabled") + self.entry_message_box.configure(state="disabled") self.button_config.configure(state="disabled", fg_color=["gray92", "gray14"]) + self.button_information.configure(state="disabled", fg_color=["gray92", "gray14"]) self.config_window.deiconify() self.config_window.focus_set() self.config_window.focus() + self.config_window.grab_set() def button_information_callback(self): if self.information_window is None or not self.information_window.winfo_exists(): diff --git a/window_config.py b/window_config.py index 7c8b2173..c5f0da9a 100644 --- a/window_config.py +++ b/window_config.py @@ -506,8 +506,17 @@ class ToplevelWindowConfig(CTkToplevel): self.parent.checkbox_translation.configure(state="normal") self.parent.checkbox_transcription_send.configure(state="normal") self.parent.checkbox_transcription_receive.configure(state="normal") + self.parent.checkbox_foreground.configure(state="normal") + self.parent.tabview_logs.configure(state="normal") + self.parent.textbox_message_log.configure(state="normal") + self.parent.textbox_message_send_log.configure(state="normal") + self.parent.textbox_message_receive_log.configure(state="normal") + self.parent.textbox_message_system_log.configure(state="normal") + self.parent.entry_message_box.configure(state="normal") self.parent.button_config.configure(state="normal", fg_color=["#3B8ED0", "#1F6AA5"]) - self.parent.config_window.withdraw() + self.parent.button_information.configure(state="normal", fg_color=["#3B8ED0", "#1F6AA5"]) + self.withdraw() + self.grab_release() def entry_message_format_callback(self, event): value = self.entry_message_format.get()