View difference between Paste ID: jzpiRByu and LMv50pcj
SHOW: | | - or go back to the newest paste.
1
#!/usr/bin/env python
2
3
import webkit, gtk
4
5
def get_source(webobj, frame):
6
  print "loading..."
7
  x = web.get_main_frame().get_data_source().get_data()
8
  print x
9
10
win = gtk.Window()
11
12
web = webkit.WebView()
13-
web.open("http://filmsbykris.com")
13+
web.open("http://google.com")
14
web.connect("load-finished", get_source)
15
16
win.add(web)
17
18
#win.show_all()
19
20
gtk.main()