this was just on digg:
############### #######
import wx
from urllib import urlopen
import wx.html
class Frame(wx.Frame) :
def userPageButton( self, event):
goToPage=self.u serPage.GetValu e()
goToPage='http://www.' + goToPage
webpage=urlopen (goToPage).read ()
displayPage=sel f.html.SetPage( webpage)
def __init__(self):
wx.Frame.__init __(self, parent=None, id=-1, title='microBro wser',
size=(800, 600), pos=(50, 50))
panel=wx.Panel( self)
self.userPage=w x.TextCtrl(pane l, pos=(400, 5)) #
self.html = wx.html.HtmlWin dow(panel, id=-1, size=(780, 530),
pos=(10, 35), style=wx.html.H W_SCROLLBAR_AUT O)
userPageButton= wx.Button(panel , label='Go!', pos=(300, 5))
userPageButton. Bind(wx.EVT_BUT TON, self.userPageBu tton)
class App(wx.App):
def OnInit(self):
self.frame=Fram e()
self.frame.Show ()
self.SetTopWind ow(self.frame)
return True
if __name__=='__ma in__':
app=App()
app.MainLoop()
############### ##
there are also python bindings for gtkmozembed in gnome-python-extras
and here:
http://sourceforge.net/projects/pygtkmoz
Franz Steinhaeusler wrote:
Hello NG,
is there any (GUI) webbrowser written completly in Python?
in pyGtk, pyQt, wxPython or TkInter?
--
Franz Steinhaeusler