How to print text from QsciScintilla with python.
-
I learned that QsciPrinter will be used but I do not understand how to use it. Is there any document for QsciScintilla for python. I didn't find any good document on it which can help using the QsciScintilla with python.
Thanks a lot in advance! -
@sah_santosh said in How to print text from QsciScintilla with python.:
QsciScintilla for python
- https://pypi.org/project/QScintilla/ "Python bindings for the QScintilla programmers editor widget": did that not help?
- https://eli.thegreenplace.net/2011/04/01/sample-using-qscintilla-with-pyqt ?
- https://qscintilla.com/installation/
- https://riverbankcomputing.com/software/qscintilla/download
You did not come across any of these, or none of them worked for you?
You do not say what Qt Python you are using --- PyQy or Qt for Python/PySide2? Looks like all examples refer to PyQt, don't know whether it will work if you use the latter then....
If you are OK with the install and are using PyQt and you find you cannot understand/there aren't any docs (often docs are only for C++), you might find you would be best joining & posting the PyQt mailing list, https://riverbankcomputing.com/mailman/listinfo/pyqt, and asking there....
-
@JonB Hello thanks a lot for your reply and the links. I already have QsciScintilla running and I am trying to develop a text editor software with QsciScintilla as it is really faster and have some cool features which I like. I am using PyQt5 and python3.5 for it so I guess it comes with QsciScintilla 2.0. Yeah, I found docs on C++ and I never worked on C++ and even I am a beginner programmer, quite difficult for me to understand and implement in python. I found one one doc on the website written in python and it just describes about the main functions they have in QsciScintilla and not other. The classes and methods are quite different for QsciScintilla as in PyQt5 and it makes me feel terrible to implement some functions and work with QsciScintilla. And I don't find any sources which can help me. I would appreciate if I can get some good references for Python with QsciScintilla.
-
@JonB I also tried looking for documentation on this link https://www.riverbankcomputing.com/static/Docs/QScintilla2/ and there is no document here.
-
@sah_santosh
As I said, most Qt stuff was written for C++. If there are Python bindings, they often do not come with any documenation of their own. You are expected to figure the Python from the C++. You could post a specific question here, but I doubt anyone is going to take the time to translate lots into Python for you. You could also join the PyQt mailing list which I linked you to above, and try asking there.