diff options
Diffstat (limited to 'usr')
-rw-r--r-- | usr/share/mageiawelcome/webgui.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr/share/mageiawelcome/webgui.py b/usr/share/mageiawelcome/webgui.py index fa94144..14f7be0 100644 --- a/usr/share/mageiawelcome/webgui.py +++ b/usr/share/mageiawelcome/webgui.py @@ -1,3 +1,5 @@ +# from http://www.aclevername.com/articles/python-webgui/ + import time import queue import _thread @@ -33,7 +35,7 @@ class WebKitMethods(object): @staticmethod def connect_title_changed(browser, callback): - def callback_wrapper(widget, frame, title): callback(title) + def callback_wrapper(widget, param): callback(widget.get_property(param.name)) browser.connect('notify::title', callback_wrapper) @staticmethod @@ -84,6 +86,9 @@ def launch_browser(html, quit_function=None, echo=True): settings.set_allow_universal_access_from_file_urls(1); browser.connect('context-menu', no_menu) + inspector = browser.get_inspector() + inspector.show() + box = Gtk.VBox(homogeneous=False, spacing=0) window.add(box) |