Unsolved looking for a code editor widget for Qt for Python
-
Hey. I am looking for a slightly more sophisticated code editor widget for Pyside2/6, but it seems hard to find something that is actually usable (which includes: can be styled, has common basic editor features, and can be easily integrated) and still maintained. The best thing I found is pyQode which, unfortunately, is also not maintained anymore and cannot be used right away with PySide2 or PySide6. While it could be easy to bring most of it to the new versions myself, I would strongly prefer a solution that is still actively maintained. Does someone know any? Thanks.
-
Hi,
Did you consider Kdevelop ?
-
@SGaist Hi, thanks. But I'm not looking for an IDE, just some widget I can customize. (if there isn't a simple way to integrate the Kdevelop text editor into my application that I missed)
-
Then you might be interested in KTextEditor which is used in Kdevelop but also Kate and other text processors.
-
doesn't seem to have Python bindings...
-
Sorry, I forgot about that constrain.
Did you check QScintilla ?
-
I did, seems nice, but it only seems to be available for PyQt, not PySide, they don't use QtPy but I need it to run on both packages : /
-
@nutrx
You probably won't find anything for PySide, there is a lot more out there written with PyQt. Unless you see it using many PyQt-specific features, in principle it should not take much to make it work for PySide. Can't you use QtPy yourself to (try to) achieve this?