On Tue, Feb 3, 2009 at 9:29 AM, Henning Schröder < [email protected]> wrote:
I successfully implemented parenthesis matching with > QTextEdit.ExtraSelection. Oh joy. Perhaps you could give me another hint. I'm confused by the docs at http://doc.trolltech.com/4.4/qtextedit.html I don't understand how to specify selection and text format for ExtraSelection elements: the ExtraSelection class seems to have neither ctor nor settors. In other words, I want to do:: e = QtGui.QTextCursor cursor = QtGui.QTextCursor() cursor.setPosition(i) cursor.movePosition(e.Right,e.KeepAnchor,1) extra = w.ExtraSelection() extra.setCursor(cursor) #### Doesn't work. w.setExtraSelections([extra]) but how do I set the attributes of extra to match cursor? Edward
_______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
