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

==========================================================================================================================================
|phoenix_title|  **wx.Trackable**
==========================================================================================================================================

Add-on base class for a trackable object. 
         

This class maintains an internal linked list of classes of type TrackerNode and calls OnObjectDestroy() on them if this object is destroyed. The most common usage is by using the `WeakRef`       class template which automates this. This class has no public API. Its only use is by deriving another class from it to make it trackable. 

::

# This class is not expected to be used from Python.











|

|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>Trackable</strong>:</label>
      <div class="collapsible-content">
         <p class="graphviz">
            <center><img src="_static/images/inheritance/wx.Trackable_inheritance.svg" alt="Inheritance diagram of Trackable" usemap="#dummy" class="inheritance invert-in-dark-mode"/></center>
            <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.Trackable.html" title="Add-on base class for a trackable object." alt="" coords="5,5,128,34"/> </map> 
         </p>
      </div>
   </div>
   <script type="text/javascript" src="_static/inheritancetoggle.js"></script>



|


|sub_classes| Known Subclasses
==============================

:ref:`wx.EvtHandler`

|


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


.. class:: wx.Trackable(object)

   Add-on base class for a trackable object.


