QScintilla/QsciScintillaCompat.py

changeset 6059
8f7c66c53c27
parent 6048
82ad8ec9548c
child 6188
5a6ae3be31e6
--- a/QScintilla/QsciScintillaCompat.py	Sat Jan 06 18:59:24 2018 +0100
+++ b/QScintilla/QsciScintillaCompat.py	Sun Jan 07 17:18:07 2018 +0100
@@ -744,6 +744,16 @@
         except AttributeError:
             pass
     
+    def canPaste(self):
+        """
+        Public method to test, if the paste action is available (i.e. if the
+        clipboard contains some text).
+        
+        @return flag indicating the availability of 'paste'
+        @rtype bool
+        """
+        return self.SendScintilla(QsciScintilla.SCI_CANPASTE)
+    
     ###########################################################################
     ## methods to perform searches in target range
     ###########################################################################

eric ide

mercurial