wx.html2.WebViewFactory¶
An abstract factory class for creating wx.html2.WebView backends.
Each implementation of wx.html2.WebView should have its own factory.
Added in version 2.9.5.
See also
Class Hierarchy¶
Methods Summary¶
Function to create a new wx.html2.WebView with two-step creation, |
|
Function to create a new wx.html2.WebView with two-step creation with a wx.html2.WebViewConfiguration, |
|
Function to check if the backend is available at runtime. |
Class API¶
- class wx.html2.WebViewFactory(Object)¶
An abstract factory class for creating WebView backends.
Methods¶
- Create(self, *args, **kw)¶
-
Create (self)
Function to create a new wx.html2.WebView with two-step creation,
wx.html2.WebView.Createshould be called on the returned object.- Return type:
- 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) –
IDof this controlurl (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:
- Returns:
The created wx.html2.WebView
- CreateWithConfig(self, config)¶
Function to create a new wx.html2.WebView with two-step creation with a wx.html2.WebViewConfiguration,
wx.html2.WebView.Createshould be called on the returned object.- Parameters:
config (wx.html2.WebViewConfiguration)
- Return type:
- 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:
Trueif the backend can be used orFalseif it is not available during runtime.
Added in version 4.1/wxWidgets-3.1.5.
