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.
_______________________________________________
PyKDE mailing list [email protected]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde