code: def _drawContents(self, currentRti=None):
          
          table = self.table
          table.setUpdatesEnabled(False)
  
          sizeAlignment = Qt.AlignRight | Qt.AlignVCenter
  
          try:
              table.clearContents()
              verticalHeader = table.verticalHeader()
              verticalHeader.setSectionResizeMode(QtWidgets.QHeaderView.Fixed)
  
              if currentRti is None or not currentRti.isSliceable:
                  return
  
              nDims = currentRti.nDims
              dimNames = currentRti.dimensionNames
              dimGroups = currentRti.dimensionGroupPaths
              dimSizes = currentRti.arrayShape
  
              # Sanity check
              assert len(dimNames) == nDims, "dimNames size {} != {}".format(len(dimNames), nDims)
              assert len(dimGroups) == nDims, "dimGroups size {} != {}".format(len(dimGroups), nDims)
              assert len(dimSizes) == nDims, "dimSizes size {} != {}".format(len(dimSizes), nDims)
  
              table.setRowCount(nDims)
              for row, (dimName, dimSize, dimGroup) in enumerate(zip(dimNames, dimSizes, dimGroups)):
                  table.setItem(row, self.COL_NAME, QtWidgets.QTableWidgetItem(dimName))
                  table.setItem(row, self.COL_SIZE, QtWidgets.QTableWidgetItem(str(dimSize)))
                  table.item(row, self.COL_SIZE).setTextAlignment(sizeAlignment)
                  table.setItem(row, self.COL_GROUP, QtWidgets.QTableWidgetItem(str(dimGroup)))
                  table.resizeRowToContents(row)
  
              verticalHeader.setSectionResizeMode(QtWidgets.QHeaderView.ResizeToContents)
  
          finally:
              table.setUpdatesEnabled(True)
docs: Draws the attributes of the currentRTI