Skip to content

Can't change foreground color of ttk.Label #137

Open
@qwertychouskie

Description

@qwertychouskie

When the Sun Valley theme isn't loaded, I can change the text color of a label like this:

        style.configure("Red.Label",   foreground='red')
        style.configure("Green.Label", foreground='green')
...
    def send_all_KA(self):
        for module in self.REVModules:
            isAlive = module.sendKA()
            if isAlive == False:
                self.on_quit_button_callback()
                self.Connected_Label.config(text='Disconnected', style='Red.Label')
            else:
                self.Connected_Label.config(text='Connected', style='Green.Label')
                module.getStatus()

However, the text just stays white when the Sun Valley theme is used.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions