.. wxPython Phoenix documentation

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

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

.. include:: headings.inc

.. currentmodule:: wx.lib.plot.utils

.. highlight:: python



.. _wx.lib.plot.utils.PendingDeprecation:

==========================================================================================================================================
|phoenix_title|  **wx.lib.plot.utils.PendingDeprecation**
==========================================================================================================================================

Decorator which warns the developer about methods that are
pending deprecation.

:param new_func: The new class, method, or function that should be used.
:type new_func: str

::

    @PendingDeprecation("new_func")
    def old_func():
        pass

    # prints the warning:
    # `old_func` is pending deprecation. Please use `new_func` instead.



|

|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>PendingDeprecation</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.plot.utils.PendingDeprecation_inheritance.png" alt="Inheritance diagram of PendingDeprecation" usemap="#dummy" class="inheritance"/></center>
   </div>
   <script type="text/javascript">toggleVisibilityOnLoad(document.getElementById('toggleBlock'))</script>
   <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.lib.plot.utils.PendingDeprecation.html" title="Decorator which warns the developer about methods that are" alt="" coords="5,5,252,35"/> </map> 
   </p>

|


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

================================================================================ ================================================================================
:meth:`~wx.lib.plot.utils.PendingDeprecation.__init__`                           
================================================================================ ================================================================================


|


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


.. class:: PendingDeprecation(object)

   Decorator which warns the developer about methods that are
   pending deprecation.
   
   :param new_func: The new class, method, or function that should be used.
   :type new_func: str
   
   ::
   
       @PendingDeprecation("new_func")
       def old_func():
           pass
   
       # prints the warning:
       # `old_func` is pending deprecation. Please use `new_func` instead.

   .. method:: __init__(self, new_func)


