parameters: (self)
return_statement: return
docstring: revert the selection of rows
          :return:
docstring_summary: revert the selection of rows
          :return:
docstring_tokens: revert the selection of rows : return :
function: def revert_selection(self):
          """
          revert the selection of rows
          :return:
          """
          # check
          if self._colIndexSelect is None:
              raise RuntimeError('Column for selection is not defined yet. Unable to revert selection')
  
          num_rows = self.rowCount()
          for i_row in range(num_rows):
              curr_selection = self.get_cell_value(i_row, self._colIndexSelect)
              self.update_cell_value(i_row, self._colIndexSelect, not curr_selection)
          # END-FOR
  
          return
function_tokens: def revert_selection ( self ) : # check if self . _colIndexSelect is None : raise RuntimeError ( 'Column for selection is not defined yet. Unable to revert selection' ) num_rows = self . rowCount ( ) for i_row in range ( num_rows ) : curr_selection = self . get_cell_value ( i_row , self . _colIndexSelect ) self . update_cell_value ( i_row , self . _colIndexSelect , not curr_selection ) # END-FOR return