Skip to content

Commit af37a03

Browse files
Merge pull request PySimpleGUI#408 from MikeTheWatchGuy/Dev-latest
Group group background color option added... slowly adding colors
2 parents 5d601cd + d46a292 commit af37a03

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

PySimpleGUI.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)