import customtkinter as ct
app = ct.CTk()
app.geometry("712x712")
app.title("википедия мини")
app.resizable(False, False)
def switch_theme_app():
global switch_var_theme
theme = switch_var_theme.get()
if theme == "light":
ct.set_appearance_mode("light")
else: # Иначе
ct.set_appearance_mode("dark") # Устанавливаем темную
switch_var_theme = ct.StringVar(value="light")
switch_theme = ct.CTkSwitch(app , onvalue="light", offvalue="dark")
switch_theme.conf