I want to change the text color of the switch widget text in customtkinter
I tried to use configure in with text_color but it showed me that there's no attribute of a switch called text_color...
Btw.. when creating the switch text_color works
minimal reproducible example:
import customtkinter as ctk
root = ctk.CTk()
switch = ctk.CTkSwitch(master=root, text='This is a switch', text_color='yellow')
switch.pack()
switch.configure(text_color='red')
root.mainloop()
Customtkinter is installed out of the box only with the .configure settings:
that you can see in the
ctk_base_class.pyfile which crashes during an error.This is probably due to the constant development of the library at the present time. To add the functionality you need, you can copy the lines you need to github and add them to a file on your computer.
Then the method in the ctk_base_class.py file will look like this: