.. wxPython Phoenix documentation

   This file was generated by Phoenix's sphinx generator and associated
   tools, do not edit by hand.

   Copyright: (c) 2011-2017 by Total Control Software
   License:   wxWindows License

.. include:: headings.inc



.. _wx.grid.GridRangeSelectEvent:

==========================================================================================================================================
|phoenix_title|  **wx.grid.GridRangeSelectEvent**
==========================================================================================================================================









.. _GridRangeSelectEvent-events:

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

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

Event macros: 

- EVT_GRID_RANGE_SELECT: The user selected a group of contiguous cells. Processes a  ``wxEVT_GRID_RANGE_SELECT``   event type.   
- EVT_GRID_CMD_RANGE_SELECT: The user selected a group of contiguous cells; variant taking a window identifier. Processes a  ``wxEVT_GRID_RANGE_SELECT``   event type.   










|

|class_hierarchy| Class Hierarchy
=================================

.. raw:: html

   <div id="toggleBlock" onclick="return toggleVisibility(this)" class="closed" style="cursor:pointer;">
   <img id="toggleBlock-trigger" src="_static/images/closed.png"/>
   Inheritance diagram for class <strong>GridRangeSelectEvent</strong>:
   </div>
   <div id="toggleBlock-summary" style="display:block;"></div>
   <div id="toggleBlock-content" style="display:none;">
   <p class="graphviz">
   <center><img src="_static/images/inheritance/wx.grid.GridRangeSelectEvent_inheritance.png" alt="Inheritance diagram of GridRangeSelectEvent" usemap="#dummy" class="inheritance"/></center>
   </div>
   <script type="text/javascript">toggleVisibilityOnLoad(document.getElementById('toggleBlock'))</script>
   <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.Event.html" title="wx.Event" alt="" coords="71,83,149,112"/> <area shape="rect" id="node3" href="wx.CommandEvent.html" title="wx.CommandEvent" alt="" coords="38,160,183,189"/> <area shape="rect" id="node2" href="wx.Object.html" title="wx.Object" alt="" coords="69,5,151,35"/> <area shape="rect" id="node5" href="wx.NotifyEvent.html" title="wx.NotifyEvent" alt="" coords="53,237,168,267"/> <area shape="rect" id="node4" href="wx.grid.GridRangeSelectEvent.html" title="wx.grid.GridRangeSelectEvent" alt="" coords="5,315,216,344"/> </map> 
   </p>

|


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

================================================================================ ================================================================================
:meth:`~wx.grid.GridRangeSelectEvent.__init__`                                   Default constructor.
:meth:`~wx.grid.GridRangeSelectEvent.AltDown`                                    Returns ``True`` if the Alt key was down at the time of the event.
:meth:`~wx.grid.GridRangeSelectEvent.ControlDown`                                Returns ``True`` if the Control key was down at the time of the event.
:meth:`~wx.grid.GridRangeSelectEvent.GetBottomRightCoords`                       Top left corner of the rectangular area that was (de)selected.
:meth:`~wx.grid.GridRangeSelectEvent.GetBottomRow`                               Bottom row of the rectangular area that was (de)selected.
:meth:`~wx.grid.GridRangeSelectEvent.GetLeftCol`                                 Left column of the rectangular area that was (de)selected.
:meth:`~wx.grid.GridRangeSelectEvent.GetRightCol`                                Right column of the rectangular area that was (de)selected.
:meth:`~wx.grid.GridRangeSelectEvent.GetTopLeftCoords`                           Top left corner of the rectangular area that was (de)selected.
:meth:`~wx.grid.GridRangeSelectEvent.GetTopRow`                                  Top row of the rectangular area that was (de)selected.
:meth:`~wx.grid.GridRangeSelectEvent.MetaDown`                                   Returns ``True`` if the Meta key was down at the time of the event.
:meth:`~wx.grid.GridRangeSelectEvent.Selecting`                                  Returns ``True`` if the area was selected, ``False`` otherwise.
:meth:`~wx.grid.GridRangeSelectEvent.ShiftDown`                                  Returns ``True`` if the Shift key was down at the time of the event.
================================================================================ ================================================================================


|


|property_summary| Properties Summary
=====================================

================================================================================ ================================================================================
:attr:`~wx.grid.GridRangeSelectEvent.BottomRightCoords`                          See :meth:`~wx.grid.GridRangeSelectEvent.GetBottomRightCoords`
:attr:`~wx.grid.GridRangeSelectEvent.BottomRow`                                  See :meth:`~wx.grid.GridRangeSelectEvent.GetBottomRow`
:attr:`~wx.grid.GridRangeSelectEvent.LeftCol`                                    See :meth:`~wx.grid.GridRangeSelectEvent.GetLeftCol`
:attr:`~wx.grid.GridRangeSelectEvent.RightCol`                                   See :meth:`~wx.grid.GridRangeSelectEvent.GetRightCol`
:attr:`~wx.grid.GridRangeSelectEvent.TopLeftCoords`                              See :meth:`~wx.grid.GridRangeSelectEvent.GetTopLeftCoords`
:attr:`~wx.grid.GridRangeSelectEvent.TopRow`                                     See :meth:`~wx.grid.GridRangeSelectEvent.GetTopRow`
================================================================================ ================================================================================


|


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


.. class:: wx.grid.GridRangeSelectEvent(NotifyEvent)

   **Possible constructors**::

       GridRangeSelectEvent()
       
       GridRangeSelectEvent(id, type, obj, topLeft, bottomRight, sel=True,
                            kbd=KeyboardState())
       



   .. method:: __init__(self, *args, **kw)



      |overload| Overloaded Implementations:

      **~~~**

      
      **__init__** `(self)`
      
      Default constructor.                   
      
      
      
      
      **~~~**

      
      **__init__** `(self, id, type, obj, topLeft, bottomRight, sel=True, kbd=KeyboardState())`
      
      Constructor for initializing all event attributes.                  
      
      
      :param `id`: 
      :type `id`: int
      :param `type`: 
      :type `type`: wx.EventType
      :param `obj`: 
      :type `obj`: wx.Object
      :param `topLeft`: 
      :type `topLeft`: wx.grid.GridCellCoords
      :param `bottomRight`: 
      :type `bottomRight`: wx.grid.GridCellCoords
      :param `sel`: 
      :type `sel`: bool
      :param `kbd`: 
      :type `kbd`: wx.KeyboardState
      
      
      
      
      
      
      **~~~**






   .. method:: AltDown(self)

      Returns ``True`` if the Alt key was down at the time of the event.                  

      :rtype: `bool`








   .. method:: ControlDown(self)

      Returns ``True`` if the Control key was down at the time of the event.                  

      :rtype: `bool`








   .. method:: GetBottomRightCoords(self)

      Top left corner of the rectangular area that was (de)selected.                  

      :rtype: :ref:`wx.grid.GridCellCoords`








   .. method:: GetBottomRow(self)

      Bottom row of the rectangular area that was (de)selected.                  

      :rtype: `int`








   .. method:: GetLeftCol(self)

      Left column of the rectangular area that was (de)selected.                  

      :rtype: `int`








   .. method:: GetRightCol(self)

      Right column of the rectangular area that was (de)selected.                  

      :rtype: `int`








   .. method:: GetTopLeftCoords(self)

      Top left corner of the rectangular area that was (de)selected.                  

      :rtype: :ref:`wx.grid.GridCellCoords`








   .. method:: GetTopRow(self)

      Top row of the rectangular area that was (de)selected.                  

      :rtype: `int`








   .. method:: MetaDown(self)

      Returns ``True`` if the Meta key was down at the time of the event.                  

      :rtype: `bool`








   .. method:: Selecting(self)

      Returns ``True`` if the area was selected, ``False`` otherwise.                  

      :rtype: `bool`








   .. method:: ShiftDown(self)

      Returns ``True`` if the Shift key was down at the time of the event.                  

      :rtype: `bool`








   .. attribute:: BottomRightCoords

      See :meth:`~wx.grid.GridRangeSelectEvent.GetBottomRightCoords`


   .. attribute:: BottomRow

      See :meth:`~wx.grid.GridRangeSelectEvent.GetBottomRow`


   .. attribute:: LeftCol

      See :meth:`~wx.grid.GridRangeSelectEvent.GetLeftCol`


   .. attribute:: RightCol

      See :meth:`~wx.grid.GridRangeSelectEvent.GetRightCol`


   .. attribute:: TopLeftCoords

      See :meth:`~wx.grid.GridRangeSelectEvent.GetTopLeftCoords`


   .. attribute:: TopRow

      See :meth:`~wx.grid.GridRangeSelectEvent.GetTopRow`

