Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to print text from QsciScintilla with python.
Forum Update on Monday, May 27th 2025

How to print text from QsciScintilla with python.

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 926 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sah_santosh
    wrote on 23 May 2019, 09:25 last edited by
    #1

    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!

    J 1 Reply Last reply 23 May 2019, 09:32
    0
    • S sah_santosh
      23 May 2019, 09:25

      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!

      J Offline
      J Offline
      JonB
      wrote on 23 May 2019, 09:32 last edited by JonB
      #2

      @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....

      S 2 Replies Last reply 23 May 2019, 09:59
      2
      • J JonB
        23 May 2019, 09:32

        @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....

        S Offline
        S Offline
        sah_santosh
        wrote on 23 May 2019, 09:59 last edited by
        #3

        @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.

        1 Reply Last reply
        0
        • J JonB
          23 May 2019, 09:32

          @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....

          S Offline
          S Offline
          sah_santosh
          wrote on 23 May 2019, 11:33 last edited by
          #4

          @JonB I also tried looking for documentation on this link https://www.riverbankcomputing.com/static/Docs/QScintilla2/ and there is no document here.

          J 1 Reply Last reply 23 May 2019, 11:54
          0
          • S sah_santosh
            23 May 2019, 11:33

            @JonB I also tried looking for documentation on this link https://www.riverbankcomputing.com/static/Docs/QScintilla2/ and there is no document here.

            J Offline
            J Offline
            JonB
            wrote on 23 May 2019, 11:54 last edited by
            #5

            @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.

            S 1 Reply Last reply 23 May 2019, 12:10
            0
            • J JonB
              23 May 2019, 11:54

              @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.

              S Offline
              S Offline
              sah_santosh
              wrote on 23 May 2019, 12:10 last edited by
              #6

              @JonB Ok. Thanks a lot for your time and effort.

              1 Reply Last reply
              1

              1/6

              23 May 2019, 09:25

              • Login

              • Login or register to search.
              1 out of 6
              • First post
                1/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved