.. 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

   <div id="toggleBlock" onclick="return toggleVisibility(this)" class="closed" style="cursor:pointer;">
   <img id="toggleBlock-trigger" src="_static/images/closed.png"/>
   Inheritance diagram for class <strong>IEHtmlWindow</strong>:
   </div>
   <div id="toggleBlock-summary" style="display:block;"></div>
   <div id="toggleBlock-content" style="display:none;">
   <p class="graphviz">
   <center><img src="_static/images/inheritance/wx.lib.iewin.IEHtmlWindow_inheritance.svg" alt="Inheritance diagram of IEHtmlWindow" usemap="#dummy" class="inheritance"/></center>
   <script type="text/javascript">toggleVisibilityOnLoad(document.getElementById('toggleBlock'))</script>
   <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.lib.iewin.IEHtmlWindow.html" title="A wx.Window for hosting ActiveX controls.  The COM interface of" alt="" coords="10,466,232,495"/> <area shape="rect" id="node2" href="wx.lib.activex.ActiveXCtrl.html" title="A wx.Window for hosting ActiveX controls.  The COM interface of" alt="" coords="18,389,225,418"/> <area shape="rect" id="node4" href="wx.Window.html" title="wx.Window  is the base class for all windows and represents any visible object on screen." alt="" coords="66,236,177,265"/> <area shape="rect" id="node5" href="wx.WindowBase.html" title="wx.WindowBase" alt="" coords="48,159,195,188"/> <area shape="rect" id="node6" href="wx.EvtHandler.html" title="A class that can handle events from the windowing system." alt="" coords="55,82,188,111"/> <area shape="rect" id="node7" href="wx.Object.html" title="This is the root class of many of the wxWidgets classes." alt="" coords="5,5,104,34"/> <area shape="rect" id="node8" href="wx.Trackable.html" title="Add-on base class for a trackable object." alt="" coords="128,5,251,34"/> </map> 
   </p>
   </div>

|


|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)