Merge pull request #6434 from PySimpleGUI/Dev-latest

Corrected the Table.get docstring to reflect that it returns a list o…
This commit is contained in:
PySimpleGUI 2023-07-03 18:47:20 -04:00 committed by GitHub
commit e41be1c157
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/python3
version = __version__ = "4.61.0.186 Unreleased"
version = __version__ = "4.61.0.187 Unreleased"
_change_log = """
Changelog since 4.60.0 released to PyPI on 8-May-2022
@ -442,6 +442,8 @@ _change_log = """
Fix for crash when no headings specified for a table by casting values into strings
4.61.0.186
Fix for popup_get_file when using no_window=True. Now returns None if cancelled or window closed
4.61.0.187
Corrected the Table.get docstring to reflect that it returns a list of ints
"""
@ -9575,11 +9577,12 @@ class Table(Element):
def get(self):
"""
Get the selected rows using tktiner's selection method. Experimenting with this change....
Get the selected rows using tktiner's selection method. Returns a list of the selected rows.
:return: the current table values
:rtype: List[List[Any]]
:rtype: List[int]
"""
selections = self.TKTreeview.selection()
selected_rows = [int(x) - 1 for x in selections]
return selected_rows