GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||
GeezerVison is showing docs.wxpython.org — wx.html2.WebViewEvent — wxPython 4.3.2 Docs
|
Get the name of the script handler. |
|
Get the type of navigation action. |
|
Get the name of the target frame which the url of this event has been or will be loaded into. |
|
Get information about the target window. |
|
Get the URL being visited. |
|
Returns |
|
Returns |
Properties Summary¶See |
|
See |
Class API¶Possible constructors:
WebViewEvent() -> None WebViewEvent(type, id, href, target, flags=WEBVIEW_NAV_ACTION_NONE, messageHandler="") -> None
A navigation event holds information about events associated with WebView objects.
__init__ (self)
None
__init__ (self, type, id, href, target, flags=WEBVIEW_NAV_ACTION_NONE, messageHandler=””)
type (wx.EventType)
id (int)
href (string)
target (string)
flags (WebViewNavigationActionFlags)
messageHandler (string)
None
Get the name of the script handler.
Only valid for events of type wxEVT_WEBVIEW_SCRIPT_MESSAGE_RECEIVED
str
Added in version 4.1/wxWidgets-3.1.5.
Get the type of navigation action.
Only valid for events of type wxEVT_WEBVIEW_NEWWINDOW
Added in version 4.1/wxWidgets-3.1.2.
Get the name of the target frame which the url of this event has been or will be loaded into.
This may return an empty string if the frame is not available.
str
Get information about the target window.
Only valid for events of type wxEVT_WEBVIEW_NEWWINDOW_FEATURES
Added in version 4.3/wxWidgets-3.3.0.
Note
This function is not implemented and always returns nullptr when using WebKit1 or Internet Explorer backend.
See also
Get the URL being visited.
str
Returns True if the operation failed.
Only valid for events of type wxEVT_WEBVIEW_SCRIPT_RESULT , wxEVT_WEBVIEW_BROWSING_DATA_CLEARED and wxEVT_WEBVIEW_PDF_SAVED
bool
Added in version 4.1/wxWidgets-3.1.6.
Returns True if the navigation target is the main frame.
Only valid for events of type wxEVT_WEBVIEW_NAVIGATING
bool
Added in version 4.3/wxWidgets-3.3.0.
Note
This is only available with the macOS and the Edge backend.