pass view to cb
This commit is contained in:
parent
32d2df0941
commit
6ddd7c65be
1 changed files with 1 additions and 3 deletions
|
@ -4,8 +4,6 @@
|
||||||
import sys, thread
|
import sys, thread
|
||||||
import gtk
|
import gtk
|
||||||
import webkit
|
import webkit
|
||||||
import warnings
|
|
||||||
from time import sleep
|
|
||||||
|
|
||||||
|
|
||||||
class WebView(webkit.WebView):
|
class WebView(webkit.WebView):
|
||||||
|
@ -35,7 +33,7 @@ class Browser(gtk.Window):
|
||||||
|
|
||||||
def _finished_loading(self, view, frame):
|
def _finished_loading(self, view, frame):
|
||||||
if self.cb:
|
if self.cb:
|
||||||
self.cb(view, frame)
|
self.cb(self, view, frame)
|
||||||
|
|
||||||
def quit(self):
|
def quit(self):
|
||||||
gtk.main_quit()
|
gtk.main_quit()
|
||||||
|
|
Loading…
Reference in a new issue