https://www.youtube.com/watch?v=JFsueTM1QtU
http://pastebin.com/2zi0SgfT
#!/usr/bin/env python
import webkit, gtk, os
win = gtk.Window()
win.resize(600,800)
win.connect('destroy', lambda w: gtk.main_quit())
scroller = gtk.ScrolledWindow()
win.add(scroller)
web = webkit.WebView()
path=os.getcwd()
print path
web.open("file://" + path + "/index.html")
#web.open("https://www.yahoo.com/")
scroller.add(web)
win.show_all()
gtk.main()
No comments:
Post a Comment