phoenix_title wx.webkit.WebKitCtrl

This control is a native wrapper around the Safari web browsing engine.

This wrapper differs from the one in wx.html2.WebView in that this version supports functionality specific to WebKit, such as having RunScript return a value, which is a very critical feature in many web embedding scenarios.

This class is only available on macOS.


class_hierarchy Class Hierarchy

Inheritance diagram for class WebKitCtrl:

api Class API

class wx.webkit.WebKitCtrl(Control)

Possible constructors:

WebKitCtrl()

WebKitCtrl(parent, winid=ID_ANY, strURL="", pos=DefaultPosition,
           size=DefaultSize, style=0, validator=DefaultValidator,
           name=WebKitCtrlNameStr)

This control is a native wrapper around the Safari web browsing engine.


Methods

__init__(self, *args, **kw)

overload Overloaded Implementations:



__init__ (self)



__init__ (self, parent, winid=ID_ANY, strURL=””, pos=DefaultPosition, size=DefaultSize, style=0, validator=DefaultValidator, name=WebKitCtrlNameStr)

Parameters





CanDecreaseTextSize(self)
Return type

bool



CanGetPageSource(self)
Return type

bool



CanGoBack(self)
Return type

bool



CanGoForward(self)
Return type

bool



CanIncreaseTextSize(self)
Return type

bool



Create(self, parent, winid=ID_ANY, strURL="", pos=DefaultPosition, size=DefaultSize, style=0, validator=DefaultValidator, name=WebKitCtrlNameStr)
Parameters
Return type

bool



DecreaseTextSize(self)


static GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL)
Parameters

variant (WindowVariant) –

Return type

VisualAttributes



GetPageSource(self)
Return type

string



GetPageTitle(self)
Return type

string



GetPageURL(self)
Return type

string



GetScrollPos(self)
Return type

int



GetSelection(self)
Return type

string



GetTitle(self)
Return type

string



GoBack(self)
Return type

bool



GoForward(self)
Return type

bool



IncreaseTextSize(self)


IsEditable(self)
Return type

bool



LoadURL(self, url)
Parameters

url (string) –



MakeEditable(self, enable=True)
Parameters

enable (bool) –



Print(self, showPrompt=False)
Parameters

showPrompt (bool) –



Reload(self)


RunScript(self, javascript)
Parameters

javascript (string) –

Return type

string



SetPageSource(self, source, baseUrl="")
Parameters
  • source (string) –

  • baseUrl (string) –



SetPageTitle(self, title)
Parameters

title (string) –



SetScrollPos(self, pos)
Parameters

pos (int) –



SetTitle(self, title)
Parameters

title (string) –



Stop(self)

Properties

PageSource

See GetPageSource and SetPageSource



PageTitle

See GetPageTitle and SetPageTitle



PageURL

See GetPageURL



ScrollPos

See GetScrollPos and SetScrollPos



Selection

See GetSelection



Title

See GetTitle and SetTitle