wx.html2.WebViewHandler¶
The base class for handling custom schemes in wx.html2.WebView, for example to allow virtual file system support.
Added in version 2.9.3.
See also
Class Hierarchy¶
Known Subclasses¶
wx.html2.WebViewArchiveHandler, wx.html2.WebViewFSHandler
Methods Summary¶
Constructor. |
|
Sets a custom security URL. |
Properties Summary¶
See |
|
See |
Class API¶
- class wx.html2.WebViewHandler(object)¶
Possible constructors:
WebViewHandler(scheme) -> None
The base class for handling custom schemes in WebView, for example to allow virtual file system support.
Methods¶
- __init__(self, scheme)¶
Constructor.
Takes the name of the scheme that will be handled by this class for example
file
orzip
.- Parameters:
scheme (string)
- Return type:
None
- GetFile(self, uri)¶
- Parameters:
uri (string)
- Return type:
FSFile
- Returns:
A pointer to the file represented by
uri
.
- GetName(self)¶
- Return type:
str
- Returns:
The name of the scheme, as passed to the constructor.
- GetSecurityURL(self)¶
- Return type:
str
- Returns:
The custom security URL. Only used by WebViewIE .
Added in version 4.1/wxWidgets-3.1.5.
- SetSecurityURL(self, url)¶
Sets a custom security URL.
Only used by WebViewIE .
- Parameters:
url (string)
- Return type:
None
Added in version 4.1/wxWidgets-3.1.5.
Properties¶
- SecurityURL¶
See
GetSecurityURL
andSetSecurityURL