code: def data(self, index, role=Qt.DisplayRole):
          
  
          if not index.isValid():
              return QVariant()
  
          if role == Qt.DisplayRole:
              return QVariant(self.__languages[index.row()].name)
          return QVariant()
docs: Reimplements the :meth:`QAbstractListModel.data` method.
  
          :param index: Index.
          :type index: QModelIndex
          :param role: Role.
          :type role: int
          :return: Data.
          :rtype: QVariant