[wxPython] Bug in the wxHtmlWindow control?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[wxPython] Bug in the wxHtmlWindow control?

Pieter Claerhout-3
Hello,

I have a problem with the wxHtmlWindow control. I adapted
the wxScrolledMessageDialog so that it uses the wxHtmlWindow
control instead. I give the contents of the wxHtmlWindow as
an argument of it's function, and then I use the SetPage()
function to load it into the HTML window. This works fine,
except for images. Whenever I try to load a HTML string with
the <img src="test.png"> tags in it, he doesn't want to load
these images, and I get the error "No handler found for this
images", even though the images are in the current working
directory.

If I load the same page with the wxPython demo, which uses the
LoadPage method instead, everything works fine. Is this a known
issue or am I doing something wrong. I don't want to write the
whole thing to disk before showing it in the window.

Kind regards,


Pieter
[hidden email]

_______________________________________________
wxPython-users maillist  -  [hidden email]
http://starship.python.net/mailman/listinfo/wxpython-users



Reply | Threaded
Open this post in threaded view
|

Re: [wxPython] Bug in the wxHtmlWindow control?

Piet van Oostrum
>>>>> Pieter Claerhout <[hidden email]> (PC) writes:

PC> Hello,
PC> I have a problem with the wxHtmlWindow control. I adapted
PC> the wxScrolledMessageDialog so that it uses the wxHtmlWindow
PC> control instead. I give the contents of the wxHtmlWindow as
PC> an argument of it's function, and then I use the SetPage()
PC> function to load it into the HTML window. This works fine,
PC> except for images. Whenever I try to load a HTML string with
PC> the <img src="test.png"> tags in it, he doesn't want to load
PC> these images, and I get the error "No handler found for this
PC> images", even though the images are in the current working
PC> directory.

Did you load the PNG handler?
wxImage_AddHandler(wxPNGHandler())

--
Piet van Oostrum <[hidden email]>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: [hidden email]


_______________________________________________
wxPython-users maillist  -  [hidden email]
http://starship.python.net/mailman/listinfo/wxpython-users