Gtk.TextBuffer:has-selection

"has-selection"             Boolean                : Read

Whether the buffer has some text currently selected.

Since 2.10