Hi friends,
I want insert a little 'kind of' web browser into my app. I have wxHtmlWindow and two buttons 'Go Back' and 'Go Forward'. Then I want make a following: if a back history is empty, then a 'Go Back' buttom is disabled and if a forward history is empty, than a 'Go Forward' button is disabled. And I must somehow watch the clicks on a links, so I can activate or diactivate the buttons. It's the same behavior like you can see in Firefox. Is it possible and how?
Thanks for help!
And how I can set the deepness of allowing jumps, i.e user can only go one/two link forward from start page and no more.
In continue of my question. How I can intercept the html data from wxHtmlWindow. For example, if user click thh link on defined page, than wxHtmlWindow should load from the Net this data, but I want intercept it and make some conversion over it, i.e change some text or links with help of regex and so on, after all changes is made send this corrected page to wxHtmlWindow for browsing. Is my questions understable, how to accomplish this task?
Thanks for your help!
See the wx.HtmlWindow documentation and demo (in the wxPython demo).
They should answer all of your questions.
- Josiah
ยทยทยท
Basil Shubin <bashu@yandex.ru> wrote:
Hi friends,
I want insert a little 'kind of' web browser into my app. I have
wxHtmlWindow and two buttons 'Go Back' and 'Go Forward'. Then I want
make a following: if a back history is empty, then a 'Go Back' buttom is
disabled and if a forward history is empty, than a 'Go Forward' button
is disabled. And I must somehow watch the clicks on a links, so I can
activate or diactivate the buttons. It's the same behavior like you can
see in Firefox. Is it possible and how?
And how I can set the deepness of allowing jumps, i.e user can only go
one/two link forward from start page and no more.
In continue of my question. How I can intercept the html data from
wxHtmlWindow. For example, if user click thh link on defined page, than
wxHtmlWindow should load from the Net this data, but I want intercept it
and make some conversion over it, i.e change some text or links with
help of regex and so on, after all changes is made send this corrected
page to wxHtmlWindow for browsing. Is my questions understable, how to
accomplish this task?