[Update] config windowをグラップするように変更
This commit is contained in:
9
VRCT.py
9
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():
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user