From 9af024cd82bae5ecb85192b33f6beb07334c6fd0 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Thu, 8 Sep 2022 16:55:33 -0400 Subject: [PATCH] Tighten up the table parms --- DemoPrograms/Demo_Table_CSV_Display.pyw | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/DemoPrograms/Demo_Table_CSV_Display.pyw b/DemoPrograms/Demo_Table_CSV_Display.pyw index df4d9442..bddfdf20 100644 --- a/DemoPrograms/Demo_Table_CSV_Display.pyw +++ b/DemoPrograms/Demo_Table_CSV_Display.pyw @@ -94,20 +94,12 @@ def main(): sg.B('Reset Table', tooltip='Resets entire table to your original data'), sg.Checkbox('Sort Descending', k='-DESCENDING-'), sg.Push()], [sg.Table(values=data, headings=header_list, max_col_width=25, - auto_size_columns=True, - display_row_numbers=True, - vertical_scroll_only=True, - justification='right', - num_rows=50, - # 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()]] + auto_size_columns=True, display_row_numbers=True, vertical_scroll_only=True, + justification='right', num_rows=50, + key='-TABLE-', selected_row_colors='red on yellow', enable_events=True, + expand_x=True, expand_y=True, + enable_click_events=True)], + [sg.Sizegrip()]] # ------ Create Window ------ window = sg.Window('CSV Table Display', layout, right_click_menu=sg.MENU_RIGHT_CLICK_EDITME_VER_EXIT, resizable=True)