List Info

Thread: show html in a sizer cell




show html in a sizer cell
user name
2006-06-30 20:49:08
Hi,

I'm trying to adapt the BlockWindow example of the WxPython
book, so 
that html formatted contents is shown inside a sizer cell.

After creating the html Frame with html.SetPage(), I don't
find where I 
have to add it though. I suppose it needs to go in the
OnPaint(): 
method, but I don't see how to achieve that.

I hope this is clear enough for somebody to help me out.

Jo

------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-users-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-users-helplists.wxwidgets.org

show html in a sizer cell
user name
2006-06-30 21:15:48


On 6/30/06, Jo <winfix.it">mlwinfix.it> wrote:
Hi,

I'm trying to adapt the BlockWindow example of the WxPython book, so
that html formatted contents is shown inside a sizer cell.

I do not know that example, so my suggestions might not "fit&quot; to your problem..

After creating the html Frame with html.SetPage(), I don't find where I
have to add it though. I suppose it needs to go in the OnPaint():
method, but I don't see how to achieve that.

I guess your "html" object is an instance of wxHtmlWindow. In this case you just need to add it to your sizer, like you would do with a text control for example. This should be done in your frame's constructor (__init__()).

A tutorial introducing the wxHtmlWindow can be found here:
http://developertutorials.com/tutorials/python/wxhtml-for-beginners-050430/page1.html


- Michael
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )