GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Table of Contents
  • wx.html2.WebViewFactory
  • Show Source
  • index
  • modules
  • next
  • previous
  • Home
  • Gallery
  • wx.html2

This view

  • Original page
  • New address

GeezerVison is showing docs.wxpython.org — wx.html2.WebViewFactory — wxPython 4.3.2 Docs

phoenix_title wx.html2.WebViewFactory¶

An abstract factory class for creating wx.html2.WebView backends.

Each implementation of wx.html2.WebView should have its own factory.

wx.html2.WebView

Added in version 2.9.5.

See also

wx.html2.WebView


class_hierarchy Class Hierarchy¶

Inheritance diagram for class WebViewFactory:

Inheritance diagram of WebViewFactory


method_summary Methods Summary¶

Create

Function to create a new wx.html2.WebView with two-step creation, wx.html2.WebView.Create should be called on the returned object.

CreateConfiguration

Create a wx.html2.WebViewConfiguration object for wx.html2.WebView instances created by this factory.

CreateWithConfig

Function to create a new wx.html2.WebView with two-step creation with a wx.html2.WebViewConfiguration, wx.html2.WebView.Create should be called on the returned object.

IsAvailable

Function to check if the backend is available at runtime.


api Class API¶

class wx.html2.WebViewFactory(Object)¶

An abstract factory class for creating WebView backends.


Methods¶

Create(self, *args, **kw)¶

overload Overloaded Implementations:



Create (self)

Function to create a new wx.html2.WebView with two-step creation, wx.html2.WebView.Create should be called on the returned object.

Return type:

wx.html2.WebView

Returns:

The created wx.html2.WebView.



Create (self, parent, id, url=WebViewDefaultURLStr, pos=DefaultPosition, size=DefaultSize, style=0, name=WebViewNameStr)

Function to create a new wx.html2.WebView with parameters.

Parameters:
  • parent (wx.Window) – Parent window for the control

  • id (wx.WindowID) – ID of this control

  • url (string) – Initial URL to load

  • pos (wx.Point) – Position of the control

  • size (wx.Size) – Size of the control

  • style (long) – Window style. For generic window styles, please see wx.Window.

  • name (string) – Window name

Return type:

wx.html2.WebView

Returns:

The created wx.html2.WebView





CreateConfiguration(self)¶

Create a wx.html2.WebViewConfiguration object for wx.html2.WebView instances created by this factory.

Return type:

wx.html2.WebViewConfiguration

Added in version 4.3/wxWidgets-3.3.0.



CreateWithConfig(self, config)¶

Function to create a new wx.html2.WebView with two-step creation with a wx.html2.WebViewConfiguration, wx.html2.WebView.Create should be called on the returned object.

Parameters:

config (wx.html2.WebViewConfiguration)

Return type:

wx.html2.WebView

Returns:

The created wx.html2.WebView.

Added in version 4.3/wxWidgets-3.3.0.

See also

CreateConfiguration



IsAvailable(self)¶

Function to check if the backend is available at runtime.

The wx.html2.WebView implementation can use this function to check all runtime requirements without trying to create a wx.html2.WebView.

Return type:

bool

Returns:

True if the backend can be used or False if it is not available during runtime.

Added in version 4.1/wxWidgets-3.1.5.

© Copyright 2012-2026, The wxPython Team. Created using Sphinx 9.1.0 and the python-docs-theme.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.