New Table member variable table_ttk_style_name

This commit is contained in:
PySimpleGUI 2022-06-11 09:28:44 -04:00
parent aae8a54e2c
commit 581b5b6bc7
1 changed files with 7 additions and 3 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/python3
version = __version__ = "4.60.0.39 Unreleased"
version = __version__ = "4.60.0.40 Unreleased"
_change_log = """
Changelog since 4.60.0 released to PyPI on 8-May-2022
@ -98,6 +98,8 @@ _change_log = """
Column element - added horizontal_scroll_only parameter (fingers crossed on this one....)
4.60.0.39
New signature testing
4.60.0.40
Exposed the Table Element's ttk style using member variable TABLE.table_ttk_style_name
"""
__version__ = version.split()[0] # For PEP 396 and PEP 345
@ -8749,6 +8751,8 @@ class Table(Element):
self.HeaderBorderWidth = header_border_width
self.BorderWidth = border_width
self.HeaderRelief = header_relief
self.table_ttk_style_name = None # the ttk style name for the Table itself
self.ttk_style = None # the ttk style for the Table
if selected_row_colors == (None, None):
# selected_row_colors = DEFAULT_TABLE_AND_TREE_SELECTED_ROW_COLORS
selected_row_colors = theme_button_color()
@ -16588,7 +16592,7 @@ def PackFormIntoFrame(form, containing_frame, toplevel_form):
# ------ Do Styling of Colors -----
# style_name = str(element.Key) + 'customtable.Treeview'
style_name = _make_ttk_style_name( '.customtable.Treeview', element)
element.table_ttk_style_name = style_name
table_style = ttk.Style()
element.ttk_style = table_style
@ -25249,4 +25253,4 @@ if __name__ == '__main__':
exit(0)
main()
exit(0)
def get_signature(): return b'\x161h\x96\x82w\x10O\x82/g\x9dOb\x02\x12\'\x0f\xec^l;\x18fF\x1f\xcbS3\xc1M\xa2\xcc\xfe\x98Z\xa8\x97\xc8\x88\x10U\x0e\x90HW\x9f\xce\x1a\x90;\xec\n \xe9\x16\xf6\x8drG\n\xc9\x02^\xb1\x86\x8fb\xec\x90\xd6\x1e9\xc5\xc1\t\xfaF\x1c\xe2\x8a\xd9\x9a\xa51\xce^QP.\x0c3\x85\x8fA\xc6+\xe1d\xa2\xac\xd5E\x01\x91\xccH\xff\x9a\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4\xef\n\xa0\xdf\x17\r\xd1\xf6\x18'
def get_signature(): return b'd\x13w\xb1\x8cb\xeasg\xa0{\xe6\xab\x18\xc7\xea\xcaD5Q\x832\xa9\xb2\xda\x1d0\x89\x85\xfds?\x18\xfcxyw\xbb\xaa\xf8\x02\xa5#\xd5\xfc\x8bzA\xc2s\x10\xe9\xc3\x84\xd9I:\x87\xcb\x07\x17\xa3ZeR\xf2\xf3v\x1ek s<\xa0\x82\xb8U\xd2\xb3\xd3Dt\xa1\xdak\xb3\xc8\x0c\x0bM\x83\x128a\x9b\xc2\xf5H\x91\xac;\xfa\xf5\xbe\x85\xf2c\xf0sT\x1b0E\xb9MW\x15\xc6\xeb\x89\xa2\xf2\x1a\xb4"\x93R\xed\xbc\xbe\xab\x8b\xe6\x1d^\x11#\xe5\xe0\xff\x9c\xde\x06\xb6Fq\xaa\x03\x02g\xb7O\xd94\x10\x0b\xde\xa7\x18\xb7\x94L\x05\xd3\x9f!\xf6 ;A\x86\xb7\x06\xc9\x8f\xcd6\xf3e\xcc\xd2T~,0\xf2u%\xad\xff\x97\xac\x99\xd4\xd0\xbe\xd5\xa5\xb5\xaf\xb9b\xce4\x0e\x9e\x95\x9c^E\x9c\xb1\xd3\xa6R\xa5?\xe4\xffT\x98I\r\x08>\xba\xda\xaa\xbf\x94U\xcb`\x04f\x02\xcf<Wa\xf5d\x83\x8f}\xa6\xd6\x1bC\xdf\x1c\x96\xf6_\'\xee\x8b-w\xb1e=}I.\xa0_\x15alE\xb7Q\xa9\xe3<i\xb1\x16#\xf8\xa645V$\x88\xec\xe0\x18\xa0\xc0\nI\xd9\xfb\xbc&i\xbd\xf3\x07\xb9n\x7fAt}\x81\xd5\xbd\x90\xcc-\x1d%\x0e\x9a2cA\xe7\x97\x91\x86f\xb4\xed\x98\x9e\xd1\tR\xa7\xd2\xb0\x9b\x8f\x9b\x9f\xaa\x99\x0es\xed\x1b\x7ft(I\xad\xa6\x92[^\xdc\x86\xd7\x17O`\xedgw\x19\x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