Table
Table and Tree Elements are of the most complex in PySimpleGUI. They have a lot of options and a lot of unusual characteristics.
layout = [[sg.Table([["", "ABC", "DEF"], ["GHI", "JKL", "MNO"], ["PQRS", "TUV", "WXYZ"]], headings=["1, 4, 7", "2, 5, 8", "3, 6, 9"])]]
Events
Several options can be enabled that will cause the Table
element to generate an event. These include:
- A row is selected
- A header or a particular cell is clicked
- The return key is pressed
Values Dictionary
List of the currently selected rows.