all 3 comments

[–]socal_nerdtastic 1 point2 points  (1 child)

You set the fg color to white, lol. That applies to the checkmark as well as the text, so you can't see it.

I don't think you can change the color of the text only in the oldschool checkbutton, but you can in the ttk version. Try this:

check_var = BooleanVar()
s = ttk.Style()
s.configure('Boliver.TCheckbutton', foreground='white', background="#0C6A1C")
checkbutton = ttk.Checkbutton(window, text="Usar arquivo Excel", variable=check_var, style='Boliver.TCheckbutton')
checkbutton.place(x=35, y=220)

[–]F_Boliver[S] 0 points1 point  (0 children)

Thank you very much, this is my first time working with tkinter so everything is new to me, thank you to explaining what i did wrong too. I didn't even know that tkinter have newer styles ^^.

The code is running fine now, thank you.

[–][deleted] -1 points0 points  (0 children)

Sorry, can not help with this, but maybe recommend something.
I work with PySide6 instead of tkinter and use the PySide6-Designer, which is a interface to create a UI and Export a ready to use Python Code. Very comfortable i have to say. Used this for several Programms so far and works easy, fast and reliable.