I was wondering what specific commands I can execute to move a text cursor in QsciScintilla to the left or right? I know for a QPlainTextEdit, you can execute the commands:
self.textEdit.moveCursor(QTextCursor.Left)
or:
self.textEdit.moveCursor(QTextCursor.Right)
Are there any similar commands for QsciScintilla?
I tried:
# left cursor movement
line, index = self.sci.getCursorPosition()
if index == 0 and line != 0:
#move to back line
elif index != 0:
self.sci.setCursorPosition(line, index - 1)