Re: [PyQt] Problems with Sonnet Highlighter

2008-08-08 Thread Simon Edwards

Hi,

Albert Cervera i Areny wrote:
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


[EMAIL PROTECTED] ~/devel/pykde4]$ python test-sonnet.py
Fatal error: you need to have a KComponentData object before
you do anything that requires it! Examples of this are config
objects, standard directories or translations.

This is on KDE 4.1. Your example code should use KApplication instead of 
just QApplication. What version of everything are you using?


cheers,

--
Simon Edwards | KDE-NL, Guidance tools, Guarddog Firewall
[EMAIL PROTECTED]   | http://www.simonzone.com/software/
Nijmegen, The Netherlands | ZooTV? You made the right choice.
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[PyQt] Problems with Sonnet Highlighter

2008-08-05 Thread Albert Cervera i Areny
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


test-sonnet.py
Description: application/python
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt