File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3380,6 +3380,13 @@ def CharWidthInPixels():
33803380 highlightcolor = element .BackgroundColor )
33813381 # if element.TextColor != COLOR_SYSTEM_DEFAULT and element.TextColor is not None:
33823382 # element.TKFrame.configure(foreground=element.TextColor)
3383+
3384+ # ttk.Style().configure("TNotebook", background='red')
3385+ # ttk.Style().map("TNotebook.Tab", background=[("selected", 'orange')],
3386+ # foreground=[("selected", 'green')])
3387+ # ttk.Style().configure("TNotebook.Tab", background='blue', foreground='yellow')
3388+
3389+
33833390 if element .BorderWidth is not None :
33843391 element .TKFrame .configure (borderwidth = element .BorderWidth )
33853392 if element .Tooltip is not None :
@@ -3403,6 +3410,10 @@ def CharWidthInPixels():
34033410 else :
34043411 element .TKNotebook = ttk .Notebook (tk_row_frame )
34053412
3413+ if element .BackgroundColor is not None and element .BackgroundColor != COLOR_SYSTEM_DEFAULT :
3414+ ttk .Style ().configure ("TNotebook" , background = element .BackgroundColor )
3415+
3416+
34063417 PackFormIntoFrame (element , toplevel_form .TKroot , toplevel_form )
34073418
34083419 if element .ChangeSubmits :
You can’t perform that action at this time.
0 commit comments