Merge pull request #5844 from PySimpleGUI/Dev-latest

Tighten up the table parms
This commit is contained in:
PySimpleGUI 2022-09-08 16:55:46 -04:00 committed by GitHub
commit 8ec1ca1fb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 14 deletions

View File

@ -94,19 +94,11 @@ def main():
sg.B('Reset Table', tooltip='Resets entire table to your original data'), sg.B('Reset Table', tooltip='Resets entire table to your original data'),
sg.Checkbox('Sort Descending', k='-DESCENDING-'), sg.Push()], sg.Checkbox('Sort Descending', k='-DESCENDING-'), sg.Push()],
[sg.Table(values=data, headings=header_list, max_col_width=25, [sg.Table(values=data, headings=header_list, max_col_width=25,
auto_size_columns=True, auto_size_columns=True, display_row_numbers=True, vertical_scroll_only=True,
display_row_numbers=True, justification='right', num_rows=50,
vertical_scroll_only=True, key='-TABLE-', selected_row_colors='red on yellow', enable_events=True,
justification='right', expand_x=True, expand_y=True,
num_rows=50, enable_click_events=True)],
# alternating_row_color='lightyellow',
key='-TABLE-',
selected_row_colors='red on yellow',
enable_events=True,
expand_x=True,
expand_y=True,
enable_click_events=True, # Comment out to not enable header and other clicks
),],
[sg.Sizegrip()]] [sg.Sizegrip()]]
# ------ Create Window ------ # ------ Create Window ------