예제 #1
0
 def setData(self, data):
     #    Data is raw rows, cols of values.
     for iRow, row in enumerate(data):
         for iCol, col in enumerate(row):
             cell, r, c = self._findCellForElement(iRow, iCol)
             element = cell.getElementAt(r, c)
             element.setValue(col)
     self.fix()
예제 #2
0
 def _updateFromElement(self, element):
     elRow = element._offsetRow+element.row
     elCol = element._offsetCol+element.col
     cell, eRow, eCol = self._findCellForElement(elRow, elCol)
     el = cell.getElementAt(eRow, eCol)
     el.update(element)
예제 #3
0
 def _findElement(self, elRow, elCol):
     cell, row, col = self._findCellForElement(elRow, elCol)
     return cell.getElementAt(row, col)