.. wxPython Phoenix documentation

   This file was generated by Phoenix's sphinx generator and associated
   tools, do not edit by hand.

   Copyright: (c) 2011-2025 by Total Control Software
   License:   wxWindows License

.. include:: headings.inc

.. currentmodule:: wx.lib.pydocview

.. highlight:: python



.. _wx.lib.pydocview.ChildDocTemplate:

==========================================================================================================================================
|phoenix_title|  **wx.lib.pydocview.ChildDocTemplate**
==========================================================================================================================================

A ChildDocTemplate is a DocTemplate subclass that enables the creation of ChildDocuments
that represents a portion of a Document.  The child document is managed by the parent document,
so it will be prompted to close if its parent is closed, etc.  Child Documents are useful
when there are complicated  Views of a Document and users will need to tunnel into the View.



|

|class_hierarchy| Class Hierarchy
=================================

.. raw:: html

   <div class="collabsible-wrapper">
      <input id="collapsible-inheritance" class="collapsible-checkbox" type="checkbox">
      <label for="collapsible-inheritance" tabindex="0" title="Show inheritance diagram" class="collapsible-label">Inheritance diagram for class <strong>ChildDocTemplate</strong>:</label>
      <div class="collapsible-content">
         <p class="graphviz">
            <center><img src="_static/images/inheritance/wx.lib.pydocview.ChildDocTemplate_inheritance.svg" alt="Inheritance diagram of ChildDocTemplate" usemap="#dummy" class="inheritance invert-in-dark-mode"/></center>
            <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.lib.pydocview.ChildDocTemplate.html" title="A ChildDocTemplate is a DocTemplate subclass that enables the creation of ChildDocuments" alt="" coords="5,159,290,188"/> <area shape="rect" id="node2" href="wx.lib.docview.DocTemplate.html" title="The DocTemplate class is used to model the relationship between a" alt="" coords="33,82,263,111"/> <area shape="rect" id="node3" href="wx.Object.html" title="This is the root class of many of the wxWidgets classes." alt="" coords="98,5,197,34"/> </map> 
         </p>
      </div>
   </div>
   <script type="text/javascript" src="_static/inheritancetoggle.js"></script>



|


|super_classes| Known Superclasses
==================================

:class:`wx.lib.docview.DocTemplate`

|


|method_summary| Methods Summary
================================

================================================================================ ================================================================================
:meth:`~wx.lib.pydocview.ChildDocTemplate.__init__`                              Initializes the ChildDocTemplate.
:meth:`~wx.lib.pydocview.ChildDocTemplate.CreateDocument`                        Called when a ChildDocument is to be created and does the minimum such that the
================================================================================ ================================================================================


|


|api| Class API
===============


.. class:: ChildDocTemplate(wx.lib.docview.DocTemplate)

   A ChildDocTemplate is a DocTemplate subclass that enables the creation of ChildDocuments
   that represents a portion of a Document.  The child document is managed by the parent document,
   so it will be prompted to close if its parent is closed, etc.  Child Documents are useful
   when there are complicated  Views of a Document and users will need to tunnel into the View.

   .. method:: __init__(self, manager, description, filter, dir, ext, docTypeName, viewTypeName, docType, viewType, flags=wx.lib.docview.TEMPLATE_INVISIBLE, icon=None)

      Initializes the ChildDocTemplate.


   .. method:: CreateDocument(self, path, flags, data=None, parentDocument=None)

      Called when a ChildDocument is to be created and does the minimum such that the
      ChildDocument looks like a real Document to the framework.


