Skip to content

Instantly share code, notes, and snippets.

@Gwith
Created October 16, 2017 20:54
Show Gist options
  • Save Gwith/2d63f934614f1474fe49acb129a4d179 to your computer and use it in GitHub Desktop.
Save Gwith/2d63f934614f1474fe49acb129a4d179 to your computer and use it in GitHub Desktop.
def test(self):
a_list = []
for row in range(self.orders_table.rowCount()):
for col in range(self.orders_table.columnCount()):
if self.orders_table.item(row, col) == None:
value = '0'
else:
value = self.orders_table.item(row, col).text()
a_list.append(value)
print(a_list)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment