python - wxpython, passing user datas to html2 -


i trying develop python gui access webpages. below example working fine. need pass user credentials(username/password) in code.

i dont want click on button. need fill text boxes in login page

import wx  import wx.html2   class mybrowser(wx.dialog):    def __init__(self, *args, **kwds):      wx.dialog.__init__(self, *args, **kwds)      sizer = wx.boxsizer(wx.vertical)      self.browser = wx.html2.webview.new(self)      self.browser.loadurl("http://wiki.python.org/moin/guiprogramming?action=login")      sizer.add(self.browser, 1, wx.expand, 10)      self.setsizer(sizer)      self.setsize((700, 700))   if __name__ == '__main__':    app = wx.app()    dialog = mybrowser(none, -1)    dialog.show()    app.mainloop()  

the "use javascript" answer helpful, recent versions of wxpython anyway, won't run unless wx.html2.evt_web_view_loaded changed wx.html2.evt_webview_loaded ("web_view changed "webview").


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -