parameters: (self, status)
return_statement: return
docstring: Purpose: select or deselect all rows in the table if applied
          Requirements:
            (1) status/selection column name must be set right;
            (2) status (input arguments) must be a boolean
          Guarantees: all rows will be either selected (status is True) or deselected (status is false)
          :param status:
          :return: 2-tuple as (True, None) or (False, error message)
docstring_summary: Purpose: select or deselect all rows in the table if applied
          Requirements:
            (1) status/selection column name must be set right;
            (2) status (input arguments) must be a boolean
          Guarantees: all rows will be either selected (status is True) or deselected (status is false)
          :param status:
          :return: 2-tuple as (True, None) or (False, error message)
docstring_tokens: Purpose : select or deselect all rows in the table if applied Requirements : ( 1 ) status / selection column name must be set right ; ( 2 ) status ( input arguments ) must be a boolean Guarantees : all rows will be either selected ( status is True ) or deselected ( status is false ) : param status : : return : 2 - tuple as ( True None ) or ( False error message )
function: def select_all_rows(self, status):
          """
          Purpose: select or deselect all rows in the table if applied
          Requirements:
            (1) status/selection column name must be set right;
            (2) status (input arguments) must be a boolean
          Guarantees: all rows will be either selected (status is True) or deselected (status is false)
          :param status:
          :return: 2-tuple as (True, None) or (False, error message)
          """
          # get column  index
          try:
              status_col_index = self._myColumnNameList.index(self._statusColName)
          except ValueError as e:
              # status column name is not properly set up
              return False, str(e)
  
          # Loop over all rows. If any row's status is not same as target status, then set it
          num_rows = self.rowCount()
          for row_index in range(num_rows):
              if self.get_cell_value(row_index, status_col_index) != status:
                  self.update_cell_value(row_index, status_col_index, status)
          # END-FOR
  
          return
function_tokens: def select_all_rows ( self , status ) : # get column  index try : status_col_index = self . _myColumnNameList . index ( self . _statusColName ) except ValueError as e : # status column name is not properly set up return False , str ( e ) # Loop over all rows. If any row's status is not same as target status, then set it num_rows = self . rowCount ( ) for row_index in range ( num_rows ) : if self . get_cell_value ( row_index , status_col_index ) != status : self . update_cell_value ( row_index , status_col_index , status ) # END-FOR return