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

.. highlight:: python



.. _wx.lib.agw.flatnotebook.FNBDropTarget:

==========================================================================================================================================
|phoenix_title|  **wx.lib.agw.flatnotebook.FNBDropTarget**
==========================================================================================================================================

Class used to handle the :meth:`FlatNotebook.OnDropTarget() <FlatNotebook.OnDropTarget>` method when dragging and
dropping between different :class:`FlatNotebook` instances.



|

|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>FNBDropTarget</strong>:</label>
      <div class="collapsible-content">
         <p class="graphviz">
            <center><img src="_static/images/inheritance/wx.lib.agw.flatnotebook.FNBDropTarget_inheritance.svg" alt="Inheritance diagram of FNBDropTarget" usemap="#dummy" class="inheritance invert-in-dark-mode"/></center>
            <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.lib.agw.flatnotebook.FNBDropTarget.html" title="Class used to handle the FlatNotebook.OnDropTarget() <FlatNotebook.OnDropTarget> method when dragging and" alt="" coords="5,82,315,111"/> <area shape="rect" id="node2" href="wx.DropTarget.html" title="This class represents a target for a drag and drop operation." alt="" coords="94,5,226,34"/> </map> 
         </p>
      </div>
   </div>
   <script type="text/javascript" src="_static/inheritancetoggle.js"></script>



|


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

:class:`wx.DropTarget`

|


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

================================================================================ ================================================================================
:meth:`~wx.lib.agw.flatnotebook.FNBDropTarget.__init__`                          Default class constructor.
:meth:`~wx.lib.agw.flatnotebook.FNBDropTarget.OnData`                            Called after `OnDrop` returns ``True``.
================================================================================ ================================================================================


|


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


.. class:: FNBDropTarget(wx.DropTarget)

   Class used to handle the :meth:`FlatNotebook.OnDropTarget() <FlatNotebook.OnDropTarget>` method when dragging and
   dropping between different :class:`FlatNotebook` instances.

   .. method:: __init__(self, parent)

      Default class constructor.
      
      :param `parent`: the window handling the drag and drop, an instance of
       :class:`FlatNotebook`.


   .. method:: OnData(self, x, y, dragres)

      Called after `OnDrop` returns ``True``.
      
      By default this will usually call `GetData` and will return the suggested default value `dragres`.
      
      :param `x`: the current x position of the mouse while dragging and dropping;
      :param `y`: the current y position of the mouse while dragging and dropping;
      :param `dragres`: an optional default return value.


