Merge pull request #1856 from PySimpleGUI/Dev-latest

Dev latest
This commit is contained in:
MikeTheWatchGuy 2019-08-21 19:45:39 -04:00 committed by GitHub
commit 0e1a079255
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -2700,7 +2700,18 @@ class Table(Element):
super().Update(self.QT_TableWidget, visible=visible)
def Get(self):
num_rows = self.QT_TableWidget.rowCount()
num_cols = self.QT_TableWidget.columnCount()
table = []
for row in range(num_rows):
row_list = []
for col in range(num_cols):
item = self.QT_TableWidget.item(row, col).text()
row_list.append(item)
table.append(row_list)
return table
def treeview_selected(self, event):
if self.ChangeSubmits: