code: def commit_close_editor(self, index, endedithint=QtGui.QAbstractItemDelegate.NoHint):
          
          editor = self._edit_widgets[index]
          self.commitData.emit(editor)
          self.closeEditor.emit(editor, endedithint)
          del self._edit_widgets[index]
docs: Commit and close the editor
  
          Call this method whenever the user finished editing.
  
          :param index: The index of the editor
          :type index: :class:`QtCore.QModelIndex`
          :param endedithint: Hints that the delegate can give the model
                              and view to make editing data comfortable for the user
          :type endedithint: :data:`QtGui.QAbstractItemDelegate.EndEditHint`
          :returns: None
          :rtype: None
          :raises: None