[PyQt] Probleme with the metho description of QSciScintlla

projetmbc projetmbc at club-internet.fr
Mon Jun 15 18:02:58 BST 2009


Hello,
I'm always trying to make my own lexer but I don't have enough 
informtaion to start easily.

I have to implement some methods but what have I to do with the method 
description.

=============== My code ===============
class monLexer(Qsci.QsciLexerCustom):
# Obtenu patr tatons : 
http://www.riverbankcomputing.com/static/Docs/QScintilla2/classQsciLexerCustom.html
    def description(self, text):
        print 'oki'

    def setStyling(self, lenght, style_bits = 0):
        print '(lenght, style_bits)'
        print (lenght, style_bits)

    def startStyling(self, pos, style_bits = 0):
        print '(pos, style_bits)'
        print (pos, style_bits)


    def styleText(self, start, end):
        print '(start, end)'
        print (start, end)
=====================================

Every kinds of help is welcome.
Christophe.



More information about the PyQt mailing list