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



.. _wx.PrintPageRange:

==========================================================================================================================================
|phoenix_title|  **wx.PrintPageRange**
==========================================================================================================================================

This class represents a range of pages to be printed. 
         








         



.. versionadded:: 4.3/wxWidgets-3.3.0  
     







.. seealso:: :ref:`wx.PrintDialogData`  







|

|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>PrintPageRange</strong>:</label>
      <div class="collapsible-content">
         <p class="graphviz">
            <center><img src="_static/images/inheritance/wx.PrintPageRange_inheritance.svg" alt="Inheritance diagram of PrintPageRange" usemap="#dummy" class="inheritance invert-in-dark-mode"/></center>
            <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.PrintPageRange.html" title="This class represents a range of pages to be printed." alt="" coords="5,5,177,34"/> </map> 
         </p>
      </div>
   </div>
   <script type="text/javascript" src="_static/inheritancetoggle.js"></script>



|


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

================================================================================ ================================================================================
:meth:`~wx.PrintPageRange.__init__`                                              Default constructor creates an uninitialized range.
:meth:`~wx.PrintPageRange.GetNumberOfPages`                                      Return the number of pages in this range if it is valid.
:meth:`~wx.PrintPageRange.IsValid`                                               Return ``True`` if both components are initialized correctly.
================================================================================ ================================================================================


|


|property_summary| Properties Summary
=====================================

================================================================================ ================================================================================
:attr:`~wx.PrintPageRange.NumberOfPages`                                         See :meth:`~wx.PrintPageRange.GetNumberOfPages`
:attr:`~wx.PrintPageRange.fromPage`                                              A public C++ attribute of type ``int``.
:attr:`~wx.PrintPageRange.toPage`                                                A public C++ attribute of type ``int``.
================================================================================ ================================================================================


|


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


.. class:: wx.PrintPageRange(object)

   **Possible constructors**::

       PrintPageRange() -> None
       
       PrintPageRange(_from, to) -> None
       
   
   This class represents a range of pages to be printed.



   .. method:: __init__(self, *args, **kw)



      |overload| **Overloaded Implementations:**

      :html:`<hr class="overloadsep" /><br />`

      
      **__init__** `(self)`
      
      Default constructor creates an uninitialized range. 
                       
      
      :rtype: `None`     
      
      
      
      
      
      
      
      :html:`<hr class="overloadsep" /><br />`

      
      **__init__** `(self, _from, to)`
      
      Constructor creating a range from `from`  to `to`  (inclusive). 
                       
      
      Parameters must be valid, i.e. `from`  must be strictly positive and `to`  must be greater or equal to `from`. 
                       
      
      
      :param `from`: 
      :type `from`: int
      :param `to`: 
      :type `to`: int
      
      
      
      
      :rtype: `None`     
      
      
      
      
      
      
      
      :html:`<hr class="overloadsep" /><br />`






   .. method:: GetNumberOfPages(self)

      Return the number of pages in this range if it is valid. 
                 

      :rtype: `int`








   .. method:: IsValid(self)

      Return ``True`` if both components are initialized correctly. 
                 

      :rtype: `bool`








   .. attribute:: NumberOfPages

      See :meth:`~wx.PrintPageRange.GetNumberOfPages`


   .. attribute:: fromPage

      A public C++ attribute of type ``int``.


   .. attribute:: toPage

      A public C++ attribute of type ``int``.

