Пример #1
0
 def editMultipleWels(self):
     indexes = []
     #Excluding empty wells
     for qModelIndex in self.selectedIndexes():
         row, column = qModelIndex.row(), qModelIndex.column()
         if not self.plate.isWellEmpty(row, column):
             indexes.append((row, column))
     if len(indexes) == 0:
         return
     row, column = indexes[0]
     wellWidget = WellWidget(self.plate[row, column], self)
     if wellWidget.exec_():
         for row, column in indexes:
             self.plate[row, column] = wellWidget.getWell()
Пример #2
0
 def editMultipleWels(self):
     indexes = []
     #Excluding empty wells
     for qModelIndex in self.selectedIndexes() :
         row,column = qModelIndex.row(),qModelIndex.column()
         if not self.plate.isWellEmpty(row,column):
             indexes.append((row,column))
     if len(indexes) == 0:
         return
     row,column = indexes[0]
     wellWidget = WellWidget(self.plate[row,column],self)
     if wellWidget.exec_():
         for row,column in indexes :
             self.plate[row,column]=wellWidget.getWell()
Пример #3
0
 def editWell(self, item):
     index = self.indexFromItem(item)
     row, column = index.row(), index.column()
     wellWidget = WellWidget(self.plate[row, column], self)
     if wellWidget.exec_():
         self.plate[row, column] = wellWidget.getWell()
Пример #4
0
 def editWell(self, item):
     index = self.indexFromItem(item)
     row,column = index.row(),index.column()
     wellWidget = WellWidget(self.plate[row,column],self)
     if wellWidget.exec_():
         self.plate[row,column]=wellWidget.getWell()