have_selection

@returns(gboolean)
def have_selection()

Determines whether there is an active selection in the view.

Returns :

TRUE if one or more rows are selected