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 OSX.
See |
|
See |
|
See |
|
See |
|
See |
|
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.
__init__
(self, *args, **kw)¶__init__ (self)
__init__ (self, parent, winid=ID_ANY, strURL=””, pos=DefaultPosition, size=DefaultSize, style=0, validator=DefaultValidator, name=WebKitCtrlNameStr)
parent (wx.Window) –
winid (wx.WindowID) –
strURL (string) –
pos (wx.Point) –
size (wx.Size) –
style (long) –
validator (wx.Validator) –
name (string) –
CanDecreaseTextSize
(self)¶bool
CanGetPageSource
(self)¶bool
CanGoBack
(self)¶bool
CanGoForward
(self)¶bool
CanIncreaseTextSize
(self)¶bool
Create
(self, parent, winid=ID_ANY, strURL="", pos=DefaultPosition, size=DefaultSize, style=0, validator=DefaultValidator, name=WebKitCtrlNameStr)¶parent (wx.Window) –
winid (wx.WindowID) –
strURL (string) –
pos (wx.Point) –
size (wx.Size) –
style (long) –
validator (wx.Validator) –
name (string) –
bool
DecreaseTextSize
(self)¶GetClassDefaultAttributes
(variant=WINDOW_VARIANT_NORMAL)¶variant (WindowVariant) –
VisualAttributes
GetPageSource
(self)¶string
GetPageTitle
(self)¶string
GetPageURL
(self)¶string
GetScrollPos
(self)¶int
GetSelection
(self)¶string
GetTitle
(self)¶string
GoBack
(self)¶bool
GoForward
(self)¶bool
IncreaseTextSize
(self)¶IsEditable
(self)¶bool
LoadURL
(self, url)¶url (string) –
MakeEditable
(self, enable=True)¶enable (bool) –
Print
(self, showPrompt=False)¶showPrompt (bool) –
Reload
(self)¶RunScript
(self, javascript)¶javascript (string) –
string
SetPageSource
(self, source, baseUrl="")¶source (string) –
baseUrl (string) –
SetPageTitle
(self, title)¶title (string) –
SetScrollPos
(self, pos)¶pos (int) –
SetTitle
(self, title)¶title (string) –
Stop
(self)¶PageSource
¶See GetPageSource
and SetPageSource
PageTitle
¶See GetPageTitle
and SetPageTitle
PageURL
¶See GetPageURL
ScrollPos
¶See GetScrollPos
and SetScrollPos
Selection
¶See GetSelection