起動時にToplevelWindowConfigを生成するように変更
This commit is contained in:
8
VRCT.py
8
VRCT.py
@@ -397,9 +397,13 @@ class App(CTk):
|
|||||||
# delete window
|
# delete window
|
||||||
self.protocol("WM_DELETE_WINDOW", self.delete_window)
|
self.protocol("WM_DELETE_WINDOW", self.delete_window)
|
||||||
|
|
||||||
def button_config_callback(self):
|
|
||||||
if self.config_window is None or not self.config_window.winfo_exists():
|
|
||||||
self.config_window = ToplevelWindowConfig(self)
|
self.config_window = ToplevelWindowConfig(self)
|
||||||
|
self.config_window.withdraw()
|
||||||
|
|
||||||
|
def button_config_callback(self):
|
||||||
|
# if self.config_window is None or not self.config_window.winfo_exists():
|
||||||
|
# # self.config_window = ToplevelWindowConfig(self)
|
||||||
|
self.config_window.deiconify()
|
||||||
self.checkbox_translation.configure(state="disabled")
|
self.checkbox_translation.configure(state="disabled")
|
||||||
self.checkbox_transcription_send.configure(state="disabled")
|
self.checkbox_transcription_send.configure(state="disabled")
|
||||||
self.checkbox_transcription_receive.configure(state="disabled")
|
self.checkbox_transcription_receive.configure(state="disabled")
|
||||||
|
|||||||
@@ -406,7 +406,7 @@ class ToplevelWindowConfig(CTkToplevel):
|
|||||||
self.parent.checkbox_translation.configure(state="normal")
|
self.parent.checkbox_translation.configure(state="normal")
|
||||||
self.parent.checkbox_transcription_send.configure(state="normal")
|
self.parent.checkbox_transcription_send.configure(state="normal")
|
||||||
self.parent.checkbox_transcription_receive.configure(state="normal")
|
self.parent.checkbox_transcription_receive.configure(state="normal")
|
||||||
self.parent.config_window.destroy()
|
self.parent.config_window.withdraw()
|
||||||
|
|
||||||
def entry_message_format_callback(self, event):
|
def entry_message_format_callback(self, event):
|
||||||
value = self.entry_message_format.get()
|
value = self.entry_message_format.get()
|
||||||
|
|||||||
Reference in New Issue
Block a user