.. wxPython Phoenix documentation This file was generated by Phoenix's sphinx generator and associated tools, do not edit by hand. Copyright: (c) 2011-2020 by Total Control Software License: wxWindows License .. include:: headings.inc .. currentmodule:: wx.lib.iewin .. highlight:: python .. _wx.lib.iewin.IEHtmlWindow: ========================================================================================================================================== |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 ================================= .. raw:: html
Inheritance diagram for class IEHtmlWindow:
| |super_classes| Known Superclasses ================================== :class:`wx.lib.activex.ActiveXCtrl` | |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~wx.lib.iewin.IEHtmlWindow.__init__` All parameters are like those used in normal wx.Windows with :meth:`~wx.lib.iewin.IEHtmlWindow.CanGoBack` :meth:`~wx.lib.iewin.IEHtmlWindow.CanGoForward` :meth:`~wx.lib.iewin.IEHtmlWindow.CommandStateChange` :meth:`~wx.lib.iewin.IEHtmlWindow.GetStringSelection` Returns the contents of the selected portion of the document as :meth:`~wx.lib.iewin.IEHtmlWindow.GetText` Returns the contents of the the html document as either html or plain text. :meth:`~wx.lib.iewin.IEHtmlWindow.GoBack` :meth:`~wx.lib.iewin.IEHtmlWindow.GoForward` :meth:`~wx.lib.iewin.IEHtmlWindow.GoHome` :meth:`~wx.lib.iewin.IEHtmlWindow.GoSearch` :meth:`~wx.lib.iewin.IEHtmlWindow.LoadStream` Load the html document from a Python file-like object. :meth:`~wx.lib.iewin.IEHtmlWindow.LoadString` Load the html document from a string :meth:`~wx.lib.iewin.IEHtmlWindow.LoadUrl` Load the document from url. :meth:`~wx.lib.iewin.IEHtmlWindow.Navigate` Navigate(flags=NavigationKeyEvent.IsForward) -> bool :meth:`~wx.lib.iewin.IEHtmlWindow.Print` :meth:`~wx.lib.iewin.IEHtmlWindow.PrintPreview` :meth:`~wx.lib.iewin.IEHtmlWindow.Quit` :meth:`~wx.lib.iewin.IEHtmlWindow.RefreshPage` :meth:`~wx.lib.iewin.IEHtmlWindow.Stop` ================================================================================ ================================================================================ | |property_summary| Properties Summary ===================================== ================================================================================ ================================================================================ :attr:`~wx.lib.iewin.IEHtmlWindow.busy` :attr:`~wx.lib.iewin.IEHtmlWindow.document` :attr:`~wx.lib.iewin.IEHtmlWindow.locationname` :attr:`~wx.lib.iewin.IEHtmlWindow.locationurl` :attr:`~wx.lib.iewin.IEHtmlWindow.offline` :attr:`~wx.lib.iewin.IEHtmlWindow.readystate` :attr:`~wx.lib.iewin.IEHtmlWindow.registerasbrowser` :attr:`~wx.lib.iewin.IEHtmlWindow.registerasdroptarget` :attr:`~wx.lib.iewin.IEHtmlWindow.silent` :attr:`~wx.lib.iewin.IEHtmlWindow.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. .. method:: __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. .. method:: CanGoBack(self) .. method:: CanGoForward(self) .. method:: CommandStateChange(self, this, command, enable) .. method:: GetStringSelection(self, asHTML=True) Returns the contents of the selected portion of the document as either html or plain text. .. method:: GetText(self, asHTML=True) Returns the contents of the the html document as either html or plain text. .. method:: GoBack(self) .. method:: GoForward(self) .. method:: GoHome(self) .. method:: GoSearch(self) .. method:: LoadStream(self, stream) Load the html document from a Python file-like object. .. method:: LoadString(self, html) Load the html document from a string .. method:: LoadUrl(self, URL, Flags=0) Load the document from url. .. method:: 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. .. method:: Print(self, showDialog=False) .. method:: PrintPreview(self) .. method:: Quit(self) .. method:: RefreshPage(self, Level=REFRESH_NORMAL) .. method:: Stop(self)