def can_paste(self):
        """ Returns whether text can be pasted from the clipboard.
        """
        if self._control.textInteractionFlags() & QtCore.Qt.TextEditable:
            return bool(QtWidgets.QApplication.clipboard().text())
        return False
 Returns whether text can be pasted from the clipboard.
        
angrmanagement/vendor/qtconsole/console_widget.py