741 try: |
741 try: |
742 self.SendScintilla( |
742 self.SendScintilla( |
743 QsciScintilla.SCI_SETCARETLINEVISIBLEALWAYS, alwaysVisible) |
743 QsciScintilla.SCI_SETCARETLINEVISIBLEALWAYS, alwaysVisible) |
744 except AttributeError: |
744 except AttributeError: |
745 pass |
745 pass |
|
746 |
|
747 def canPaste(self): |
|
748 """ |
|
749 Public method to test, if the paste action is available (i.e. if the |
|
750 clipboard contains some text). |
|
751 |
|
752 @return flag indicating the availability of 'paste' |
|
753 @rtype bool |
|
754 """ |
|
755 return self.SendScintilla(QsciScintilla.SCI_CANPASTE) |
746 |
756 |
747 ########################################################################### |
757 ########################################################################### |
748 ## methods to perform searches in target range |
758 ## methods to perform searches in target range |
749 ########################################################################### |
759 ########################################################################### |
750 |
760 |