how use IEHtmlWindow widget change html form

白昼怎懂夜的黑 提交于 2019-12-13 07:03:25

问题


all

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')

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


回答1:


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



来源:https://stackoverflow.com/questions/15106096/how-use-iehtmlwindow-widget-change-html-form

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!