ok ... after a few hours I think I have figured it out...
the function that reads the table is like so ..
def addNewPasses(self):
allRows = self.ui.tableWidget.rowCount()
for row in xrange(0,allRows):
twi0 = self.ui.tableWidget.item(row,0)
twi1 = self.ui.tableWidget.cellWidget(row,1)
twi2 = self.ui.tableWidget.cellWidget(row,2)
print twi0.text()+' '+twi1.currentText()+' '+twi2.currentText()
def addNewPasses(self):
allRows = self.ui.tableWidget.rowCount()
for row in xrange(0,allRows):
twi0 = self.ui.tableWidget.item(row,0)
twi1 = self.ui.tableWidget.cellWidget(row,1)
twi2 = self.ui.tableWidget.cellWidget(row,2)
print twi0.text()+' '+twi1.currentText()+' '+twi2.currentText()
To copy to clipboard, switch view to plain text mode
if there is a better more streamlined way let me know!
stephen
Bookmarks