code: def _drawContents(self, currentRti=None):
          
          #logger.debug("_drawContents: {}".format(currentRti))
          table = self.table
          table.setUpdatesEnabled(False)
          try:
              table.clearContents()
              verticalHeader = table.verticalHeader()
              verticalHeader.setSectionResizeMode(QtWidgets.QHeaderView.Fixed)
  
              attributes = currentRti.attributes if currentRti is not None else {}
              table.setRowCount(len(attributes))
  
              for row, (attrName, attrValue) in enumerate(sorted(attributes.items())):
                  attrStr = to_string(attrValue, decode_bytes='utf-8')
  
                  try:
                      type_str = type_name(attrValue)
                  except Exception as ex:
                      logger.exception(ex)
                      type_str = "<???>"
  
                  nameItem = QtWidgets.QTableWidgetItem(attrName)
                  nameItem.setToolTip(attrName)
                  table.setItem(row, self.COL_ATTR_NAME, nameItem)
                  valItem = QtWidgets.QTableWidgetItem(attrStr)
                  valItem.setToolTip(attrStr)
                  table.setItem(row, self.COL_VALUE, valItem)
                  table.setItem(row, self.COL_ELEM_TYPE, QtWidgets.QTableWidgetItem(type_str))
                  table.resizeRowToContents(row)
  
              verticalHeader.setSectionResizeMode(QtWidgets.QHeaderView.ResizeToContents)
  
          finally:
              table.setUpdatesEnabled(True)
docs: Draws the attributes of the currentRTI