parameters: (self, index, text, _)
return_statement: return True
docstring: set text in the cell
          :param index: index of the cell
          :param text: text for the cell
          :return: true if data is set
docstring_summary: set text in the cell
          :param index: index of the cell
          :param text: text for the cell
          :return: true if data is set
docstring_tokens: set text in the cell : param index : index of the cell : param text : text for the cell : return : true if data is set
function: def setData(self, index, text, _):
          """
          set text in the cell
          :param index: index of the cell
          :param text: text for the cell
          :return: true if data is set
          """
          row = index.row()
          col = index.column()
  
          self._setCellText(row, col, text)
          self._removeTrailingEmptyRows()
  
          self.beginResetModel()
          self.endResetModel()
  
          # move selection to the next column or row
          col = col + 1
  
          if col >= self.columnCount():
              row = row + 1
              col = 0
  
          row = min(row, self.rowCount() - 1)
          self.selectCell.emit(self.index(row, col))
  
          return True
function_tokens: def setData ( self , index , text , _ ) : row = index . row ( ) col = index . column ( ) self . _setCellText ( row , col , text ) self . _removeTrailingEmptyRows ( ) self . beginResetModel ( ) self . endResetModel ( ) # move selection to the next column or row col = col + 1 if col >= self . columnCount ( ) : row = row + 1 col = 0 row = min ( row , self . rowCount ( ) - 1 ) self . selectCell . emit ( self . index ( row , col ) ) return True