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

==========================================================================================================================================
|phoenix_title|  **wx.LongPressEvent**
==========================================================================================================================================

This event is generated when one finger touches the surface and remains stationary. 
         

Note that currently it is only generated under wxGTK and wxOSX. 

wxGTK also generates this event when left mouse button is being pressed for some minimum duration of time. 







.. _LongPressEvent-events:

|events| Events Emitted by this Class
=====================================

Handlers bound for the following event types will receive a :ref:`wx.LongPressEvent` parameter.

 

- EVT_LONG_PRESS: Process a  ``wxEVT_LONG_PRESS`` .   









         



.. versionadded:: 4.1/wxWidgets-3.1.1  
     







|

|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>LongPressEvent</strong>:</label>
      <div class="collapsible-content">
         <p class="graphviz">
            <center><img src="_static/images/inheritance/wx.LongPressEvent_inheritance.svg" alt="Inheritance diagram of LongPressEvent" usemap="#dummy" class="inheritance invert-in-dark-mode"/></center>
            <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.LongPressEvent.html" title="This event is generated when one finger touches the surface and remains stationary." alt="" coords="5,236,176,265"/> <area shape="rect" id="node2" href="wx.GestureEvent.html" title="This is the base class for all supported gesture events." alt="" coords="16,159,166,188"/> <area shape="rect" id="node3" href="wx.Event.html" title="An event is a structure holding information about an event passed to a callback or member function." alt="" coords="44,82,138,111"/> <area shape="rect" id="node4" href="wx.Object.html" title="This is the root class of many of the wxWidgets classes." alt="" coords="41,5,140,34"/> </map> 
         </p>
      </div>
   </div>
   <script type="text/javascript" src="_static/inheritancetoggle.js"></script>



|


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

================================================================================ ================================================================================
:meth:`~wx.LongPressEvent.__init__`                                              Constructor.
================================================================================ ================================================================================


|


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


.. class:: wx.LongPressEvent(GestureEvent)

   **Possible constructors**::

       LongPressEvent(windid=0) -> None
       
   
   This event is generated when one finger touches the surface and
   remains stationary.



   .. method:: __init__(self, windid=0)

      Constructor. 
                 


      :param `windid`: 
      :type `windid`: wx.WindowID




      :rtype: `None`     







