[PyKDE] PyKDE & khtml DOMString

Ismail Donmez ismail at pardus.org.tr
Fri Mar 17 17:45:28 GMT 2006


Hi all,

I am using khtml in my PyKDE app ( which rocks btw ) , two minor problems 
appear, I have to use stuff like

document = self.htmlPart.document()
document.getElementsByTagName(DOM.DOMString("input"))

would it be possible to write it like
document = self.htmlPart.document()
document.getElementsByTagName("input")

which means a auto-conversion between DOMString & str. 

Also is there a way to handle C++ exceptions in Python ? Because per DOM spec 
khtml throws exceptions in DOM code which results in a crash because I can't 
handle it as a Python exception.

Regards,
ismail

-- 
An eye for eye will make the whole world blind -- Gandhi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20060317/64bca217/attachment.bin


More information about the PyQt mailing list