.. wxPython Phoenix documentation This file was generated by Phoenix's sphinx generator and associated tools, do not edit by hand. Copyright: (c) 2011-2018 by Total Control Software License: wxWindows License .. include:: headings.inc .. _wx.html2.WebViewHandler: ========================================================================================================================================== |phoenix_title| **wx.html2.WebViewHandler** ========================================================================================================================================== The base class for handling custom schemes in :ref:`wx.html2.WebView`, for example to allow virtual file system support. :ref:`wx.html2.WebView` .. versionadded:: 2.9.3 .. seealso:: :ref:`wx.html2.WebView` | |class_hierarchy| Class Hierarchy ================================= .. raw:: html
Inheritance diagram for class WebViewHandler:

| |sub_classes| Known Subclasses ============================== :ref:`wx.html2.WebViewArchiveHandler`, :ref:`wx.html2.WebViewFSHandler` | |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~wx.html2.WebViewHandler.__init__` Constructor. :meth:`~wx.html2.WebViewHandler.GetFile` :meth:`~wx.html2.WebViewHandler.GetName` ================================================================================ ================================================================================ | |property_summary| Properties Summary ===================================== ================================================================================ ================================================================================ :attr:`~wx.html2.WebViewHandler.Name` See :meth:`~wx.html2.WebViewHandler.GetName` ================================================================================ ================================================================================ | |api| Class API =============== .. class:: 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. .. method:: __init__(self, scheme) Constructor. Takes the name of the scheme that will be handled by this class for example ``file`` or ``zip`` . :param `scheme`: :type `scheme`: string .. method:: GetFile(self, uri) :param `uri`: :type `uri`: string :rtype: `FSFile` :returns: A pointer to the file represented by ``uri`` . .. method:: GetName(self) :rtype: `string` :returns: The name of the scheme, as passed to the constructor. .. attribute:: Name See :meth:`~wx.html2.WebViewHandler.GetName`