PyCRichEditCtrl.GetSel

(start, end) = GetSel()

Returns the start and end of the current selection.

MFC References

CRichEditCtrl::GetSel

Return Value

The return tuple is (the first character in the current selection, first nonselected character past the end of the current selection)