.. wxPython Phoenix documentation
This file was generated by Phoenix's sphinx generator and associated
tools, do not edit by hand.
Copyright: (c) 2011-2018 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() ` method when dragging and
dropping between different :class:`FlatNotebook` instances.
|
|class_hierarchy| Class Hierarchy
=================================
.. raw:: html

Inheritance diagram for class
FNBDropTarget:
|
|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() ` 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.