phoenix_title wx.lib.iewin.IEHtmlWindow

A wx.Window for hosting ActiveX controls. The COM interface of the ActiveX control is accessible through the ctrl property of this class, and this class is also set as the event sink for COM events originating from the ActiveX control. In other words, to catch the COM events you merely have to derive from this class and provide a method with the correct name. See the comtypes package documentation for more details.


class_hierarchy Class Hierarchy

Inheritance diagram for class IEHtmlWindow:

super_classes Known Superclasses

wx.lib.activex.ActiveXCtrl


method_summary Methods Summary

__init__

All parameters are like those used in normal wx.Windows with

CanGoBack

CanGoForward

CommandStateChange

GetStringSelection

Returns the contents of the selected portion of the document as

GetText

Returns the contents of the the html document as either html or plain text.

GoBack

GoForward

GoHome

GoSearch

LoadStream

Load the html document from a Python file-like object.

LoadString

Load the html document from a string

LoadUrl

Load the document from url.

Navigate

Navigate(flags=NavigationKeyEvent.IsForward) -> bool

Print

PrintPreview

Quit

RefreshPage

Stop


property_summary Properties Summary

busy

document

locationname

locationurl

offline

readystate

registerasbrowser

registerasdroptarget

silent

type


api Class API

class IEHtmlWindow(wx.lib.activex.ActiveXCtrl)

A wx.Window for hosting ActiveX controls. The COM interface of the ActiveX control is accessible through the ctrl property of this class, and this class is also set as the event sink for COM events originating from the ActiveX control. In other words, to catch the COM events you merely have to derive from this class and provide a method with the correct name. See the comtypes package documentation for more details.


Methods

__init__(self, parent, id=-1, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0, name='IEHtmlWindow')

All parameters are like those used in normal wx.Windows with the addition of axID which is a string that is either a ProgID or a CLSID used to identify the ActiveX control.



CanGoBack(self)


CanGoForward(self)


CommandStateChange(self, this, command, enable)


GetStringSelection(self, asHTML=True)

Returns the contents of the selected portion of the document as either html or plain text.



GetText(self, asHTML=True)

Returns the contents of the the html document as either html or plain text.



GoBack(self)


GoForward(self)


GoHome(self)


GoSearch(self)


LoadStream(self, stream)

Load the html document from a Python file-like object.



LoadString(self, html)

Load the html document from a string



LoadUrl(self, URL, Flags=0)

Load the document from url.



Navigate(self, URL, Flags=0, TargetFrameName=None, PostData=None, Headers=None)

Navigate(flags=NavigationKeyEvent.IsForward) -> bool

Performs a keyboard navigation action starting from this window.



Print(self, showDialog=False)


PrintPreview(self)


Quit(self)


RefreshPage(self, Level=REFRESH_NORMAL)


Stop(self)