[PyKDE] Trying to use KHTMLPart
Russell Valentine
russ at coldstonelabs.org
Fri Feb 16 18:24:56 GMT 2007
The image is probably being cached.
If you replace
doc = document % os.path.join(os.getcwd(), 'title.png')
with
doc = document % os.path.join(os.getcwd(),
'title.png?test='+str(time.time()))
in the khtml part.
It should work the way you want. Atleast it does for me.
Joseph Rawson wrote:
> selected to be the title, the title.png file is overwritten. Neither the
> textbroser or kpart will display the changed image. The textbrowser will, if
> I first tell it to setText('') then setText(doc), but I can't figure out what
> to do about the KHTMLPart. I have tried to load a blank document, then
> reload with the real document, but that doesn't work.
More information about the PyQt
mailing list