def supports_selection():
 return QApplication.clipboard().supportsSelection()

def supports_selection ( ) : return QApplication . clipboard ( ) . supportsSelection ( )
check if the os supports primary selection .