Files
Phoenix/docs/sphinx/rest_substitutions/snippets/python/converted/wx.html2.WebView.GetNativeBackend.1.py
2016-08-13 17:33:33 -07:00

10 lines
445 B
Python

# In Python the value returned will be a sip wrapper around a void* type,
# and it can be converted to the address being pointed to with int().
webview_ptr = self.webview.GetNativeBackend()
# Assuming you are able to get a ctypes, cffi or similar access to the
# webview library, you can use that pointer value to give it access to the
# WebView backend to operate upon.
theWebViewLib.doSomething(int(webview_ptr))