Python Forum
Browse/Navigate Webpages
Thread Rating:
  • 2 Vote(s) - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Browse/Navigate Webpages
#1
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.
Reply
#2
There a bunch of packages to pick from here: https://pypi.python.org/pypi?%3Aaction=s...mit=search
Reply
#3
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() 
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] WebPages in tkinter CharlieSchuyler 1 780 May-15-2020, 04:38 AM
Last Post: Larz60+
  browse item and assign file to variable PYSIDE Gigux 3 2,592 May-01-2017, 02:03 AM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020