Images in HtmlWindow

Ed Leafe ed at leafe.com
Fri May 4 08:38:09 PDT 2007


	I've noticed that when creating a file path for an <img> element,  
wx.html.HtmlWindow doesn't handle Windows file:// URLs properly. For  
example, if I set the control like this:

htmlwin.SetPage('<img src="file:///c:/projects/dabo/icons/close.png">')

... I get a broken image icon. But if I remove the drive portion:

htmlwin.SetPage('<img src="file:///projects/dabo/icons/close.png">')

...that works fine. This is the exact opposite behavior of both  
Firefox and IE under Windows, which require the drive specifier in  
the file path, and which fail to display the image without it.

	Is this a bug, or is this 'expected' behavior under Windows?

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com






More information about the wxpython-users mailing list