[PyQt] Problems with Sonnet Highlighter

Albert Cervera i Areny albert at nan-tic.com
Tue Aug 5 23:28:39 BST 2008

I wanted to give Sonnet Highlighter a try and I find that it simply doesn't 
work for me (debian unstable packages), it gives:

Traceback (most recent call last):
  File "test-sonnet.py", line 10, in <module>
    Sonnet.Highlighter( edit )
TypeError: argument 1 of Highlighter() has an invalid type

I attach a simple application that shows that I'm actually providing a 
QTextEdit to Highlighter constructor as requested according to the 

Has anybody been successful using Sonnet? Does the test provided work on your 
system or is it a PyKDE bug?


Thanks in advance!

Albert Cervera i Areny
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-sonnet.py
Type: application/x-python
Size: 252 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20080805/0141dfd2/test-sonnet.bin

More information about the PyQt mailing list