def exportTable(self):
table = dict()
tablecontent = []
print(self.table.rowCount())
tablecontent.append(['FileName', 'Imager concentration[nM]', 'Integration time [ms]', 'Laserpower', 'Mean [Photons]', 'Std [Photons]'])
for row in range(self.table.rowCount()):
rowdata = []
for column in range(self.table.columnCount()):
item = self.table.item(row, column)
if item is not None:
rowdata.append(item.text())
else:
rowdata.append('')
tablecontent.append(rowdata)
table[0] = tablecontent
print(tablecontent)
print(table)
path = QtGui.QFileDialog.getSaveFileName(self, 'Export calibration table to.', filter='*.csv')
if path:
self.savePlate(path, table)
评论列表
文章目录