Skip to content

Instantly share code, notes, and snippets.

@kanzure
Created September 14, 2013 19:25
Show Gist options
  • Save kanzure/6564816 to your computer and use it in GitHub Desktop.
Save kanzure/6564816 to your computer and use it in GitHub Desktop.
python gtk3 libwebkit libjavascriptcore gi.repository gobject introspection JSGlobalContextRef
In [12]: frame = browser.webview.get_main_frame()
In [13]: frame.get_global_context()
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-13-28813e0f64ff> in <module>()
----> 1 frame.get_global_context()
/usr/lib/python2.7/dist-packages/gi/types.py in function(*args, **kwargs)
111 @wraps_callable_info(info)
112 def function(*args, **kwargs):
--> 113 return info.invoke(*args, **kwargs)
114
115 return function
TypeError: Couldn't find conversion for foreign struct 'JavaScriptCore.GlobalContext'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment