.. 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.agw.aui.aui_utilities

.. highlight:: python



.. _wx.lib.agw.aui.aui_utilities.TabDragImage:

==========================================================================================================================================
|phoenix_title|  **wx.lib.agw.aui.aui_utilities.TabDragImage**
==========================================================================================================================================

This class handles the creation of a custom image in case of drag and drop of a notebook tab.



|

|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>TabDragImage</strong>:</label>
      <div class="collapsible-content">
         <p class="graphviz">
            <center><img src="_static/images/inheritance/wx.lib.agw.aui.aui_utilities.TabDragImage_inheritance.svg" alt="Inheritance diagram of TabDragImage" usemap="#dummy" class="inheritance invert-in-dark-mode"/></center>
            <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.lib.agw.aui.aui_utilities.TabDragImage.html" title="This class handles the creation of a custom image in case of drag and drop of a notebook tab." alt="" coords="5,159,328,188"/> <area shape="rect" id="node2" href="wx.DragImage.html" title="This class is used when you wish to drag an object on the screen, and a simple cursor is not enough." alt="" coords="101,82,233,111"/> <area shape="rect" id="node3" href="wx.Object.html" title="This is the root class of many of the wxWidgets classes." alt="" coords="117,5,216,34"/> </map> 
         </p>
      </div>
   </div>
   <script type="text/javascript" src="_static/inheritancetoggle.js"></script>



|


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

:class:`wx.DragImage`

|


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

================================================================================ ================================================================================
:meth:`~wx.lib.agw.aui.aui_utilities.TabDragImage.__init__`                      Default class constructor.
:meth:`~wx.lib.agw.aui.aui_utilities.TabDragImage.CreateBitmap`                  Actually creates the drag and drop bitmap.
================================================================================ ================================================================================


|


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


.. class:: TabDragImage(wx.DragImage)

   This class handles the creation of a custom image in case of drag and drop of a notebook tab.

   .. method:: __init__(self, notebook, page, button_state, tabArt)

      Default class constructor.
      
      For internal use: do not call it in your code!
      
      :param `notebook`: an instance of :class:`~wx.lib.agw.aui.auibook.AuiNotebook`;
      :param `page`: the dragged :class:`~wx.lib.agw.aui.auibook.AuiNotebookPage` page;
      :param integer `button_state`: the state of the close button on the tab;
      :param `tabArt`: an instance of :class:`~wx.lib.agw.aui.tabart.AuiDefaultTabArt` or one of its derivations.


   .. method:: CreateBitmap(self, notebook, page, button_state, tabArt)

      Actually creates the drag and drop bitmap.
      
      :param `notebook`: an instance of :class:`~wx.lib.agw.aui.auibook.AuiNotebook`;
      :param `page`: the dragged :class:`~wx.lib.agw.aui.auibook.AuiNotebookPage` page;
      :param integer `button_state`: the state of the close button on the tab;
      :param `tabArt`: an instance of :class:`~wx.lib.agw.aui.tabart.AuiDefaultTabArt` or one of its derivations.


