Merge pull request #5844 from PySimpleGUI/Dev-latest
Tighten up the table parms
This commit is contained in:
commit
8ec1ca1fb9
|
@ -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 ------
|
||||||
|
|
Loading…
Reference in New Issue