1623 |
1623 |
1624 ########################################################################### |
1624 ########################################################################### |
1625 ## methods to implement workarounds for broken things |
1625 ## methods to implement workarounds for broken things |
1626 ########################################################################### |
1626 ########################################################################### |
1627 |
1627 |
1628 def insert(self, txt): |
1628 if QSCINTILLA_VERSION() == 0x020B00: |
1629 """ |
1629 def insert(self, txt): |
1630 Public method to insert text at the cursor position. |
1630 """ |
1631 |
1631 Public method to insert text at the cursor position. |
1632 @param txt text to be inserted |
1632 |
1633 @type str |
1633 @param txt text to be inserted |
1634 """ |
1634 @type str |
1635 line, col = self.getCursorPosition() |
1635 """ |
1636 self.insertAt(txt, line, col) |
1636 line, col = self.getCursorPosition() |
|
1637 self.insertAt(txt, line, col) |
1637 |
1638 |
1638 ########################################################################### |
1639 ########################################################################### |
1639 ## methods below have been added to QScintilla starting with version 2.5 |
1640 ## methods below have been added to QScintilla starting with version 2.5 |
1640 ########################################################################### |
1641 ########################################################################### |
1641 |
1642 |