wx.grid.GridRangeSelectEvent

Inheritance diagram for wx.grid.GridRangeSelectEvent:



Description

Event fired when a user select a range of cells in wx.grid.Grid.

Event Handling

The event handler for the following functions takes a wx.grid.GridRangeSelectEvent parameter. The ..._CMD_... variants also take a window identifier.

Event Name Description
wx.grid.EVT_GRID_RANGE_SELECT(func) The user selected a group of contiguous cells. Processes a wx.grid.wxEVT_GRID_RANGE_SELECT.
wx.grid.EVT_GRID_CMD_RANGE_SELECT(func) The user selected a group of contiguous cells; variant taking a window identifier. Processes a wx.grid.wxEVT_GRID_RANGE_SELECT.

Class API

Methods

__init__(id, type, obj, topLeft, bottomRight, sel=True, control=False, shift=False, alt=False, meta=False)

Constructor.

Parameters:

  • id (int)
  • type (eventtype)
  • obj (wx.grid.Grid)
  • topLeft (wx.grid.GridCellCoords)
  • bottomRight (wx.grid.GridCellCoords)
  • sel (bool)
  • control (bool)
  • shift (bool)
  • alt (bool)
  • meta (bool)

Returns:

wx.grid.GridRangeSelectEvent


AltDown()

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


Returns:

bool


CmdDown()
No docstrings available for this method.

ControlDown()

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


Returns:

bool


GetBottomRightCoords()

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


Returns:

wx.grid.GridCellCoords


GetBottomRow()

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


Returns:

int


GetLeftCol()

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


Returns:

int


GetRightCol()

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


Returns:

int


GetTopLeftCoords()

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


Returns:

wx.grid.GridCellCoords


GetTopRow()

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


Returns:

int


MetaDown()

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


Returns:

bool


Selecting()

Returns True if the area was selected, False otherwise.


Returns:

bool


ShiftDown()

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


Returns:

bool


Properties

BottomRightCoords
See GetBottomRightCoords
BottomRow
See GetBottomRow
LeftCol
See GetLeftCol
RightCol
See GetRightCol
TopLeftCoords
See GetTopLeftCoords
TopRow
See GetTopRow