Merge pull request #408 from MikeTheWatchGuy/Dev-latest

Group group background color option added... slowly adding colors
This commit is contained in:
MikeTheWatchGuy 2018-10-03 00:56:59 -04:00 committed by GitHub
commit af37a030c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -3380,6 +3380,13 @@ def PackFormIntoFrame(form, containing_frame, toplevel_form):
highlightcolor=element.BackgroundColor) highlightcolor=element.BackgroundColor)
# if element.TextColor != COLOR_SYSTEM_DEFAULT and element.TextColor is not None: # if element.TextColor != COLOR_SYSTEM_DEFAULT and element.TextColor is not None:
# element.TKFrame.configure(foreground=element.TextColor) # element.TKFrame.configure(foreground=element.TextColor)
# ttk.Style().configure("TNotebook", background='red')
# ttk.Style().map("TNotebook.Tab", background=[("selected", 'orange')],
# foreground=[("selected", 'green')])
# ttk.Style().configure("TNotebook.Tab", background='blue', foreground='yellow')
if element.BorderWidth is not None: if element.BorderWidth is not None:
element.TKFrame.configure(borderwidth=element.BorderWidth) element.TKFrame.configure(borderwidth=element.BorderWidth)
if element.Tooltip is not None: if element.Tooltip is not None:
@ -3403,6 +3410,10 @@ def PackFormIntoFrame(form, containing_frame, toplevel_form):
else: else:
element.TKNotebook = ttk.Notebook(tk_row_frame) element.TKNotebook = ttk.Notebook(tk_row_frame)
if element.BackgroundColor is not None and element.BackgroundColor != COLOR_SYSTEM_DEFAULT:
ttk.Style().configure("TNotebook", background=element.BackgroundColor)
PackFormIntoFrame(element, toplevel_form.TKroot, toplevel_form) PackFormIntoFrame(element, toplevel_form.TKroot, toplevel_form)
if element.ChangeSubmits: if element.ChangeSubmits: