I know that a method of deleting can be self.qsci.cut()
and I know in a different language you can use the DeleteBack()
method, but how can I remove a typed character event.text()
or just simply remove the previous character in PyQt5. Thank you in advance for your help!
Asked
Active
Viewed 68 times
1

Benjamin Sloutsky
- 163
- 1
- 11
1 Answers
2
SendScintilla
provides the interface to scintilla commands:
editor = Qsci.QsciScintilla()
# ...
editor.SendScintilla(Qsci.QsciCommand.DeleteBack)

musicamante
- 41,230
- 6
- 33
- 58