511 return '\n' |
511 return '\n' |
512 elif len(txt.split("\r", 1)) == 2: |
512 elif len(txt.split("\r", 1)) == 2: |
513 return '\r' |
513 return '\r' |
514 else: |
514 else: |
515 return None |
515 return None |
|
516 |
|
517 def getCursorFlashTime(self): |
|
518 """ |
|
519 Public method to get the flash (blink) time of the cursor in milliseconds. |
|
520 |
|
521 The flash time is the time required to display, invert and restore the |
|
522 caret display. Usually the text cursor is displayed for half the cursor |
|
523 flash time, then hidden for the same amount of time. |
|
524 |
|
525 @return flash time of the cursor in milliseconds (integer) |
|
526 """ |
|
527 return 2 * self.SendScintilla(QsciScintilla.SCI_GETCARETPERIOD) |
|
528 |
|
529 def setCursorFlashTime(self, time): |
|
530 """ |
|
531 Public method to get the flash (blink) time of the cursor in milliseconds. |
|
532 |
|
533 The flash time is the time required to display, invert and restore the |
|
534 caret display. Usually the text cursor is displayed for half the cursor |
|
535 flash time, then hidden for the same amount of time. |
|
536 |
|
537 @param time flash time of the cursor in milliseconds (integer) |
|
538 """ |
|
539 self.SendScintilla(QsciScintilla.SCI_SETCARETPERIOD, time // 2) |
516 |
540 |
517 ##################################################################################### |
541 ##################################################################################### |
518 # methods to perform searches in target range |
542 # methods to perform searches in target range |
519 ##################################################################################### |
543 ##################################################################################### |
520 |
544 |