def loadTif(self):
self.path = QtGui.QFileDialog.getExistingDirectory(self, "Select Directory")
if self.path:
self.tifCounter = len(_glob.glob1(self.path, "*.tif"))
self.tifFiles = _glob.glob(os.path.join(self.path, "*.tif"))
self.table.setRowCount(int(self.tifCounter))
self.table.setColumnCount(6)
self.table.setHorizontalHeaderLabels(('FileName,Imager concentration[nM],Integration time [ms],Laserpower,Mean [Photons],Std [Photons]').split(','))
for i in range(0, self.tifCounter):
self.table.setItem(i, 0, QtGui.QTableWidgetItem(self.tifFiles[i]))
评论列表
文章目录