From 4324b41b9e7857423e87411289e49f9a8b276ca1 Mon Sep 17 00:00:00 2001 From: Kenneth Estanislao Date: Thu, 15 Aug 2024 03:03:57 +0800 Subject: [PATCH] Update ui.py hides NSFW button --- modules/ui.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ui.py b/modules/ui.py index ab18e953..2759a9e2 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -88,9 +88,9 @@ def create_root(start: Callable[[], None], destroy: Callable[[], None]) -> ctk.C many_faces_switch = ctk.CTkSwitch(root, text='Many faces', variable=many_faces_value, cursor='hand2', command=lambda: setattr(modules.globals, 'many_faces', many_faces_value.get())) many_faces_switch.place(relx=0.6, rely=0.65) - nsfw_value = ctk.BooleanVar(value=modules.globals.nsfw) - nsfw_switch = ctk.CTkSwitch(root, text='NSFW', variable=nsfw_value, cursor='hand2', command=lambda: setattr(modules.globals, 'nsfw', nsfw_value.get())) - nsfw_switch.place(relx=0.6, rely=0.7) +# nsfw_value = ctk.BooleanVar(value=modules.globals.nsfw) +# nsfw_switch = ctk.CTkSwitch(root, text='NSFW', variable=nsfw_value, cursor='hand2', command=lambda: setattr(modules.globals, 'nsfw', nsfw_value.get())) +# nsfw_switch.place(relx=0.6, rely=0.7) start_button = ctk.CTkButton(root, text='Start', cursor='hand2', command=lambda: select_output_path(start)) start_button.place(relx=0.15, rely=0.80, relwidth=0.2, relheight=0.05)