Browse/Navigate Webpages - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: GUI (https://python-forum.io/forum-10.html) +--- Thread: Browse/Navigate Webpages (/thread-4006.html) |
Browse/Navigate Webpages - ian - Jul-16-2017 In my python 3.6 app, I need to build a web browser on a wx frame/panel. the app is able to change values on webpages and control navigation. what are better option? any docs or samples? Thanks. RE: Browse/Navigate Webpages - Larz60+ - Jul-16-2017 There a bunch of packages to pick from here: https://pypi.python.org/pypi?%3Aaction=search&term=%27web+browser%27&submit=search RE: Browse/Navigate Webpages - nilamo - Jul-19-2017 Google is your friend :) https://stackoverflow.com/a/10866495 Wrote: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) 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.browser.LoadURL("http://www.google.com") dialog.Show() app.MainLoop() |