does HtmlWindow support CSS

I'm using wx.html.HtmlWindow to display some simple html, the css has imbeded in the html, but wxPython seems has ingored it. Does it support CSS?

If I use wx.lib.iewin, will the above problem be solved?
Can I use html string rather than url to fill in the window?
Is it convinent to capture clicking on links and trigger special events?
and where can i find the documentation of lib.iewin?

Thanks.

···

--
Zhang Yunfeng
http://vib.hit.edu.cn
http://my.opera.com/zhangyunfeng

I'm using wx.html.HtmlWindow to display some simple html, the css has
imbeded in the html, but wxPython seems has ingored it. Does it support
CSS?

I have not had any luck with it doing anything with CSS, so I would
guess no.

If I use wx.lib.iewin, will the above problem be solved?

Depends on the CSS. IE isn't fully CSS compliant, and breaks in some
interesting ways.

Can I use html string rather than url to fill in the window?

win.LoadString()

Is it convinent to capture clicking on links and trigger special events?

I don't know.

and where can i find the documentation of lib.iewin?

Among other places, in Python, help(wx.lib.iewin) .

- Josiah

···

zyf_sz <zhangyunfeng@gmail.com> wrote:

zyf_sz wrote:

I'm using wx.html.HtmlWindow to display some simple html, the css has imbeded in the html, but wxPython seems has ingored it. Does it support CSS?

No.

If I use wx.lib.iewin, will the above problem be solved?

Yes, since is uses the Internet Explorer component.

Can I use html string rather than url to fill in the window?

Yes, there is a LoadString method in the IEHtmlWindow class.

Is it convinent to capture clicking on links and trigger special events?
and where can i find the documentation of lib.iewin?

It's a wrapper around the IE ActiveX control so you can find info about that in MSDN. For what is wrapped, what events and properties are available, and etc. look at the source in iewin.py

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Thanks for all your answers. I'll looking for that.

···

--
Zhang Yunfeng
http://vib.hit.edu.cn
http://my.opera.com/zhangyunfeng