.. 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.dataview.TreeListItem:

==========================================================================================================================================
|phoenix_title|  **wx.dataview.TreeListItem**
==========================================================================================================================================

Unique identifier of an item in :ref:`wx.dataview.TreeListCtrl`. 
         

This is an opaque class which can't be used by the application in any other way than receiving or passing it to :ref:`wx.dataview.TreeListCtrl`  and checking for validity. 








         



.. versionadded:: 2.9.3 
     







.. seealso:: :ref:`wx.dataview.TreeListCtrl`  







|

|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>TreeListItem</strong>:</label>
      <div class="collapsible-content">
         <p class="graphviz">
            <center><img src="_static/images/inheritance/wx.dataview.TreeListItem_inheritance.svg" alt="Inheritance diagram of TreeListItem" usemap="#dummy" class="inheritance invert-in-dark-mode"/></center>
            <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.dataview.TreeListItem.html" title="Unique identifier of an item in wx.dataview.TreeListCtrl." alt="" coords="5,5,212,34"/> </map> 
         </p>
      </div>
   </div>
   <script type="text/javascript" src="_static/inheritancetoggle.js"></script>



|


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

================================================================================ ================================================================================
:meth:`~wx.dataview.TreeListItem.__init__`                                       Only the default constructor is publicly accessible.
:meth:`~wx.dataview.TreeListItem.IsOk`                                           Return ``True`` if the item is valid.
:meth:`~wx.dataview.TreeListItem.__bool__`                                       
:meth:`~wx.dataview.TreeListItem.__eq__`                                         
:meth:`~wx.dataview.TreeListItem.__hash__`                                       
:meth:`~wx.dataview.TreeListItem.__ne__`                                         
:meth:`~wx.dataview.TreeListItem.__nonzero__`                                    
================================================================================ ================================================================================


|


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


.. class:: wx.dataview.TreeListItem(object)

   **Possible constructors**::

       TreeListItem() -> None
       
   
   Unique identifier of an item in TreeListCtrl.



   .. method:: __init__(self)

      Only the default constructor is publicly accessible. 
                 

      Default constructing a :ref:`wx.dataview.TreeListItem`  creates an invalid item. 
                 

      :rtype: `None`     








   .. method:: IsOk(self)

      Return ``True`` if the item is valid. 
                 

      :rtype: `bool`








   .. method:: __bool__(self)



      :rtype: `bool`








   .. method:: __eq__(self, other)



      :rtype: `bool`








   .. method:: __hash__(self)



      :rtype: `int`








   .. method:: __ne__(self, other)



      :rtype: `bool`








   .. method:: __nonzero__(self)



      :rtype: `bool`







