如何使用 IEHtmlWindow 小部件更改 html 表单

问题描述:

全部

我想用wx.lib.iewin开发一个软.软包括一个即框架和三个按钮.当我单击一个按钮时,ie 框架可以单击google.com"这样的 url,然后单击另一个按钮可以在 google.com 的搜索输入表单中设置一些值.最后一个按钮可以点击 google.com 的搜索按钮.

i want to use wx.lib.iewin develop a soft. the soft include an ie frame and three buttons. when i click one button , the ie frame can click an url like 'google.com', and click another button can set some value in google.com 's search input form. and last button can click google.com 's search button.

我知道如何浏览谷歌网址.

i know how to navigate google url.

    self.ie = iewin.IEHtmlWindow(self.panel_left,pos=wx.DefaultPosition, size=(465,560),style=wx.html.HW_SCROLLBAR_AUTO)
    self.ie.AddEventSink(self.panel_left)
    self.ie.Navigate('http://google.com')

但是'我如何获得 ie 的文档.并更改 dom 的值.

but' how i can get the ie 's document . and change dom's value.

文档对象应该可以作为 self.ie.ctrl.Document 访问.

The document object should be accessible as self.ie.ctrl.Document.