wxoo.gridselectionset
index
p:\wxproperties\wxoo\gridselectionset.py

Object implementing selection-set semantics for wxgrids
 
XXX Should rewrite this using proper objects for the
        sub-selection objects.  Adding support for optimizing
        the sub-selection objects where possible (for
        instance combining adjacent items of the same
        dimension).

 
Modules
       
clip_dndc
cmndlgsc
controls2c
controlsc
eventsc
filesysc
fontsc
framesc
gdic
wxPython.gridc
imagec
mdic
misc2c
miscc
printfwc
sizersc
stattoolc
streamsc
sys
types
utilsc
weakref
windows2c
windows3c
windowsc
wxPython.wx
wxPython.wxc

 
Classes
       
object
GridSelectionSet
wxPyCommandEvent(wxPyCommandEventPtr)
GridSelectionChangedEvent

 
class GridSelectionChangedEvent(wxPyCommandEvent)
    An event notifying the application that ranges have been selected in a grid
 
attributes:
        grid -- pointer to the grid window
        selectionSet -- pointer to the GridSelectionSet object
 
 
Method resolution order:
GridSelectionChangedEvent
wxPyCommandEvent
wxPyCommandEventPtr
wxCommandEventPtr
wxEventPtr
wxObjectPtr

Methods defined here:
Clone(self)
Clone the event (get value-based copy)
__init__(self, windowID, grid, selectionSet)

Data and other attributes defined here:
eventType = 10240

Methods inherited from wxPyCommandEventPtr:
GetSelf(self, *_args, **_kwargs)
SetSelf(self, *_args, **_kwargs)
__del__(self, delfunc=<built-in function delete_wxPyCommandEvent>)
__repr__(self)

Methods inherited from wxCommandEventPtr:
Checked(self, *_args, **_kwargs)
GetClientData(self, *_args, **_kwargs)
GetExtraLong(self, *_args, **_kwargs)
GetInt(self, *_args, **_kwargs)
GetSelection(self, *_args, **_kwargs)
GetString(self, *_args, **_kwargs)
IsChecked(self, *_args, **_kwargs)
IsSelection(self, *_args, **_kwargs)
SetExtraLong(self, *_args, **_kwargs)
SetInt(self, *_args, **_kwargs)
SetString(self, *_args, **_kwargs)

Methods inherited from wxEventPtr:
GetEventObject(self, *_args, **_kwargs)
GetEventType(self, *_args, **_kwargs)
GetId(self, *_args, **_kwargs)
GetSkipped(self, *_args, **_kwargs)
GetTimestamp(self, *_args, **_kwargs)
SetEventObject(self, *_args, **_kwargs)
SetEventType(self, *_args, **_kwargs)
SetId(self, *_args, **_kwargs)
SetTimestamp(self, *_args, **_kwargs)
Skip(self, *_args, **_kwargs)

Methods inherited from wxObjectPtr:
Destroy(self, *_args, **_kwargs)
GetClassName(self, *_args, **_kwargs)

 
class GridSelectionSet(object)
    Selections in a grid, query for cells, rows, or columns
 
The selection-set object for grids manages a
set of selected-range records that together
define the set of selected cells within the
grid control.
 
It provides mechanisms for querying the
selection-set for rows, columns and cells.
 
  Methods defined here:
GetCells(self)
Return all cells which are in the selection set
 
This implementation uses generators because of the potential for
huge cell-sets being returned...
GetColumns(self)
Return the column indices which include a selected cell
GetRanges(self, compare=None)
Return the cell ranges in the selection set
GetRows(self)
Return the row indices which include a selected cell
__init__(self, grid)

Data and other attributes defined here:
__dict__ = <dictproxy object at 0x024C3E90>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'GridSelectionSet' objects>
list of weak references to the object (if defined)

 
Functions
       
EVT_SELECTION_CHANGED(window, function)
Map a function for handling selection-changed events
col_compare(a, b)
Compare column values item[1] for a and b

 
Data
        SELECTION_CHANGED = 10240
cvar = <Global variables>
generators = _Feature((2, 2, 0, 'alpha', 1), (2, 3, 0, 'final', 0), 4096)
wxEVT_GRID_CELL_CHANGE = 10162
wxEVT_GRID_CELL_LEFT_CLICK = 10151
wxEVT_GRID_CELL_LEFT_DCLICK = 10153
wxEVT_GRID_CELL_RIGHT_CLICK = 10152
wxEVT_GRID_CELL_RIGHT_DCLICK = 10154
wxEVT_GRID_COL_SIZE = 10160
wxEVT_GRID_EDITOR_CREATED = 10166
wxEVT_GRID_EDITOR_HIDDEN = 10165
wxEVT_GRID_EDITOR_SHOWN = 10164
wxEVT_GRID_LABEL_LEFT_CLICK = 10155
wxEVT_GRID_LABEL_LEFT_DCLICK = 10157
wxEVT_GRID_LABEL_RIGHT_CLICK = 10156
wxEVT_GRID_LABEL_RIGHT_DCLICK = 10158
wxEVT_GRID_RANGE_SELECT = 10161
wxEVT_GRID_ROW_SIZE = 10159
wxEVT_GRID_SELECT_CELL = 10163
wxGRIDTABLE_NOTIFY_COLS_APPENDED = 2006
wxGRIDTABLE_NOTIFY_COLS_DELETED = 2007
wxGRIDTABLE_NOTIFY_COLS_INSERTED = 2005
wxGRIDTABLE_NOTIFY_ROWS_APPENDED = 2003
wxGRIDTABLE_NOTIFY_ROWS_DELETED = 2004
wxGRIDTABLE_NOTIFY_ROWS_INSERTED = 2002
wxGRIDTABLE_REQUEST_VIEW_GET_VALUES = 2000
wxGRIDTABLE_REQUEST_VIEW_SEND_VALUES = 2001
wxGRID_VALUE_BOOL = 'bool'
wxGRID_VALUE_CHOICE = 'choice'
wxGRID_VALUE_CHOICEINT = 'choiceint'
wxGRID_VALUE_DATETIME = 'datetime'
wxGRID_VALUE_FLOAT = 'double'
wxGRID_VALUE_LONG = 'long'
wxGRID_VALUE_NUMBER = 'long'
wxGRID_VALUE_STRING = 'string'
wxGRID_VALUE_TEXT = 'string'
wxGridNoCellCoords = wxGridCellCoords(-1, -1)
wxGridNoCellRect = wxRect(-1, -1, -1, -1)