[Python] sv_ttk dark theme not working consistently

Discussão em 'Python' iniciado por Stack, Dezembro 7, 2024.

  1. Stack

    Stack Membro Participativo

    I have two methods that create and use tkinter windows with sv_ttk dark theme. One method, which consists of text box, scrollbar, and button, works perfectly. The second method, which consists of entries, labels, and a button, dark theme does not work at all.

    The windows are called the exact same way and the windows aren't used outside the method that creates and destroys them.

    # Create root window, make it appear on top, and set title
    root = tk.Tk()
    root.attributes('-topmost', True)
    root.title("User Input")

    # Set dark theme
    sv_ttk.set_theme('dark')


    Any idea why the entry/label method doesn't apply dark theme?

    Continue reading...

Compartilhe esta Página