Tkinter ttk see custom theme settings

Offical list of all options by ttk finally found a list that includes all coloration options to style with ttk. https://wiki.tcl-lang.org/page/Changing+Widget+Colors ttk.Button ttk::style configure TButton -background color ttk::style configure TButton -foreground color ttk::style configure TButton -font namedfont ttk::style configure TButton -focuscolor color ttk::style map TButton -background \ [list active color disabled color readonly color] ttk::style … Read more

Change color of “tab header” in ttk.Notebook

You can try creating a custom theme. import tkinter as tk from tkinter import ttk root = tk.Tk() mygreen = “#d2ffd2” myred = “#dd0202” style = ttk.Style() style.theme_create( “yummy”, parent=”alt”, settings={ “TNotebook”: {“configure”: {“tabmargins”: [2, 5, 2, 0] } }, “TNotebook.Tab”: { “configure”: {“padding”: [5, 1], “background”: mygreen }, “map”: {“background”: [(“selected”, myred)], “expand”: [(“selected”, … Read more

tkinter optionmenu first option vanishes

The signature of the ttk.OptionMenu command is this: def __init__(self, master, variable, default=None, *values, **kwargs): This is the docstring: “””Construct a themed OptionMenu widget with master as the parent, the resource textvariable set to variable, the initially selected value specified by the default parameter, the menu values given by *values and additional keywords. Notice the … Read more

Removing Ttk Notebook Tab Dashed Line

You can remove this focus mark by altering the sub elements of tab widget. Ttk widgets are decomposed in subelements. The layout of these elements is described through layout method (or in a layout parameter of theme_create). Here is a command to remove layout marks (you can apply it directly to Tab, or any other … Read more