The base class for handling custom schemes in wx.html2.WebView, for example to allow virtual file system support.
New in version 2.9.3.
See also
wx.html2.
WebViewHandler
(object)¶Possible constructors:
WebViewHandler(scheme)
The base class for handling custom schemes in WebView, for example to allow virtual file system support.
__init__
(self, scheme)¶Constructor.
Takes the name of the scheme that will be handled by this class for example file
or zip
.
Parameters: | scheme (string) – |
---|
GetFile
(self, uri)¶Parameters: | uri (string) – |
---|---|
Return type: | FSFile |
Returns: | A pointer to the file represented by uri . |
GetName
(self)¶Return type: | string |
---|---|
Returns: | The name of the scheme, as passed to the constructor. |