def create_webview():
webview = webkit.WebView()
webview.connect('close-web-view', lambda x: gtk.main_quit())
webview.connect("navigation-policy-decision-requested", script_action)
settings = webview.get_settings()
settings.set_property('enable_plugins', True)
settings.set_property('enable-scripts', True)
return webview
评论列表
文章目录