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 gtk
|
||||
import webkit
|
||||
import warnings
|
||||
from time import sleep
|
||||
|
||||
|
||||
class WebView(webkit.WebView):
|
||||
|
@ -35,7 +33,7 @@ class Browser(gtk.Window):
|
|||
|
||||
def _finished_loading(self, view, frame):
|
||||
if self.cb:
|
||||
self.cb(view, frame)
|
||||
self.cb(self, view, frame)
|
||||
|
||||
def quit(self):
|
||||
gtk.main_quit()
|
||||
|
|
Loading…
Reference in a new issue