Merge pull request #2346 from PySimpleGUI/Dev-latest

Font setting for TabGroup elements
This commit is contained in:
PySimpleGUI 2019-12-09 22:04:09 -05:00 committed by GitHub
commit d4e7095059
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/python3
version = __version__ = "4.10.0 Released 9-Dec-2019"
version = __version__ = "4.10.0.1 Unreleased - Fonts for TabGroups"
port = 'PySimpleGUI'
@ -756,7 +756,7 @@ class Element():
:param event: (unknown) Not used in this function.
"""
# print(f'Button callback event = {obj_to_string_single_obj(event)}')
# print(f'Button callback event = {event}, {other}')
try:
self.ButtonCallBack()
except:
@ -8777,6 +8777,8 @@ def PackFormIntoFrame(form, containing_frame, toplevel_form):
style.configure(custom_style + '.Tab', background= element.TabBackgroundColor)
if element.TextColor is not None and element.TextColor != COLOR_SYSTEM_DEFAULT:
style.configure(custom_style + '.Tab', foreground=element.TextColor)
if element.Font is not None:
style.configure(custom_style + '.Tab', font=element.Font)
element.TKNotebook = element.Widget = ttk.Notebook(tk_row_frame, style=custom_style)