pass view to cb

This commit is contained in:
j 2010-11-06 22:00:40 +01:00
parent 32d2df0941
commit 6ddd7c65be

View file

@ -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()