I know we can modify the default style of a ttk::notebook tab using the following method :
ttk::style configure TNotebook.Tab -background red
My question is : is it possible to assign a custom style to individual tabs? Bascially, I would like something like this :
ttk::style configure TNotebook.Tab.Red -background red
ttk::style configure TNotebook.Tab.Green -background green
ttk::notebook .main.notebook
.main.notebook add .main.notebook.tab1 -text "I am red" -style TNotebook.Tab.Red
.main.notebook add .main.notebook.tab2 -text "I am green" -style TNotebook.Tab.Green
However, notebook tab options doesn't include a -style
option. So is this possible?