diff --git a/VRCT.py b/VRCT.py index 00a2fc99..7fb09bd1 100644 --- a/VRCT.py +++ b/VRCT.py @@ -328,7 +328,6 @@ class App(CTk): image=CTkImage(Image_open(os_path.join(os_path.dirname(__file__), "img", "config-icon-white.png"))) ) self.button_config.grid(row=5, column=1, padx=(5, 10), pady=(5, 5), sticky="wse") - self.config_window = None # load ui language data language_yaml_data = get_localized_text(f"{self.UI_LANGUAGE}") @@ -400,10 +399,13 @@ class App(CTk): self.config_window = ToplevelWindowConfig(self) def button_config_callback(self): - self.config_window.deiconify() self.checkbox_translation.configure(state="disabled") self.checkbox_transcription_send.configure(state="disabled") self.checkbox_transcription_receive.configure(state="disabled") + self.button_config.configure(state="disabled", fg_color=["gray92", "gray14"]) + + self.config_window.deiconify() + self.config_window.focus_set() self.config_window.focus() def button_information_callback(self): diff --git a/window_config.py b/window_config.py index 17e5efdf..9acb8e13 100644 --- a/window_config.py +++ b/window_config.py @@ -415,6 +415,7 @@ 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.button_config.configure(state="normal", fg_color=["#3B8ED0", "#1F6AA5"]) self.parent.config_window.withdraw() def entry_message_format_callback(self, event):