Skip to content
Discussion options

You must be logged in to vote

You can use theme dictionary object from the class ThemeManager to get appearance related default options.

from customtkinter import ThemeManager

if __name__ == "__main__":
    frame_defaults = ThemeManager.theme["CTkFrame"]
    label_defaults = ThemeManager.theme["CTkLabel"]
    button_defaults = ThemeManager.theme["CTkButton"]
    checkbox_defaults = ThemeManager.theme["CTkCheckBox"]
    ...

    # Prints appearance related options of the widgets
    print(frame_defaults)
    print(label_defaults)
    print(button_defaults)
    print(checkbox_defaults)
    ...
        

Output:

{'corner_radius': 6, 'border_width': 0, 'fg_color': ['gray86', 'gray17'], 'top_fg_color': ['gray81', 'gray20']…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@misahko
Comment options

@dipeshSam
Comment options

Answer selected by misahko
@misahko
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants