You might want to see how Qscintlla does this.
See QScintilla · PyPI
Also there is a mailing list to support PyQt that has experts on PyQt.
You might want to see how Qscintlla does this.
See QScintilla · PyPI
Also there is a mailing list to support PyQt that has experts on PyQt.