Files
Phoenix/docs/sphinx/rest_substitutions/snippets/python/converted/wx.html2.WebView.AddScriptMessageHandler.1.py
2021-10-26 12:37:24 -07:00

6 lines
243 B
Python

# Install message handler with the name wx_msg
self.webView.AddScriptMessageHandler('wx_msg')
# Bind an event handler to receive those messages
self.webView.Bind(wx.EVT_WEBVIEW_SCRIPT_MESSAGE_RECEIVED, self.handleMessage)