Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道一种删除方法可以self.qsci.cut(),并且我知道您可以使用不同的语言使用该DeleteBack()方法,但是如何删除键入的字符event.text()或仅删除 PyQt5 中的前一个字符。预先感谢您的帮助!
self.qsci.cut()
DeleteBack()
event.text()
SendScintilla提供 scintilla 命令的接口:
SendScintilla
editor = Qsci.QsciScintilla() # ... editor.SendScintilla(Qsci.QsciCommand.DeleteBack)