[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 
documentation 
[1].

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

[1] 
http://api.kde.org/4.x-api/kdelibs-apidocs/kdeui/html/classSonnet_1_1Highlighter.html

Thanks in advance!

-- 
Albert Cervera i Areny
http://www.NaN-tic.com
-------------- 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