wxoo.table.ootable
index
p:\wxproperties\wxoo\table\ootable.py

Object-oriented wxPyGridTable instances

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

 
Classes
       
wxPyGridTableBase(wxPyGridTableBasePtr)
OOTable
CollectionTable
ObjectTable

 
class CollectionTable(OOTable)
    Allows you to manage properties of a collection of like objects
 
This looks like a spread-sheet with attribute editors at each
cell in the grid for the properties of individual objects.
 
 
Method resolution order:
CollectionTable
OOTable
wxPyGridTableBase
wxPyGridTableBasePtr
wxGridTableBasePtr
wxObjectPtr

Methods defined here:
GetColLabelValue(self, col)
Return column labels (property names)
GetNumberCols(self)
Return the number of columns (properties)
GetNumberRows(self)
Return the number of rows (objects)
GetObjectForCoordinate(self, row, col)
Return the object/client of the property at row/col
GetPropertyForCoordinate(self, row, col)
Return the property corresponding to row/col coordinate
GetRowLabelValue(self, row)
Return row labels (object index)

Methods inherited from OOTable:
GetAdapter(self)
Get the current adapter for the table
GetAttr(self, row, col, someExtraParameter)
Part of a workaround to avoid use of attributes
 
Queried by _PropertyGrid's IsCurrentCellReadOnly
GetTypeName(self, row, col)
Return the data type value for the property
GetValue(self, row, col)
Return the (row,col) value as a string value
 
Note: the conversion to string occurs in the underlying
machinery, not in the Python code.
GetValueAsObject(self, row, col)
Return the (row,col) value as a Python object
 
Note: this method is seperate from the GetValue method
because that method's support machinery auto-
converts the result to string values.
IsEmptyCell(self, row, col)
Determine whether the cell is "empty", to avoid both display and editing
ResetView(self)
Trim/extend the control's rows and update all values
SetAdapter(self, adapter)
Set the current adapter for the table
SetValue(self, row, col, value)
Set a new value for row,col as value, send property-changed events
UpdateValues(self)
Update all displayed values
__init__(self, view, adapter=None)
getGrid(self)
getView(self)
### Utility methods

Data and other attributes inherited from OOTable:
currentColumns = 1
currentRows = 0

Methods inherited from wxPyGridTableBasePtr:
Destroy(self, *_args, **_kwargs)
__repr__(self)
base_AppendCols(self, *_args, **_kwargs)
base_AppendRows(self, *_args, **_kwargs)
base_CanGetValueAs(self, *_args, **_kwargs)
base_CanHaveAttributes(self, *_args, **_kwargs)
base_CanSetValueAs(self, *_args, **_kwargs)
base_Clear(self, *_args, **_kwargs)
base_DeleteCols(self, *_args, **_kwargs)
base_DeleteRows(self, *_args, **_kwargs)
base_GetAttr(self, *_args, **_kwargs)
base_GetColLabelValue(self, *_args, **_kwargs)
base_GetRowLabelValue(self, *_args, **_kwargs)
base_GetTypeName(self, *_args, **_kwargs)
base_InsertCols(self, *_args, **_kwargs)
base_InsertRows(self, *_args, **_kwargs)
base_SetAttr(self, *_args, **_kwargs)
base_SetColAttr(self, *_args, **_kwargs)
base_SetColLabelValue(self, *_args, **_kwargs)
base_SetRowAttr(self, *_args, **_kwargs)
base_SetRowLabelValue(self, *_args, **_kwargs)

Methods inherited from wxGridTableBasePtr:
AppendCols(self, *_args, **_kwargs)
AppendRows(self, *_args, **_kwargs)
CanGetValueAs(self, *_args, **_kwargs)
CanHaveAttributes(self, *_args, **_kwargs)
CanSetValueAs(self, *_args, **_kwargs)
Clear(self, *_args, **_kwargs)
DeleteCols(self, *_args, **_kwargs)
DeleteRows(self, *_args, **_kwargs)
GetAttrProvider(self, *_args, **_kwargs)
GetValueAsBool(self, *_args, **_kwargs)
GetValueAsDouble(self, *_args, **_kwargs)
GetValueAsLong(self, *_args, **_kwargs)
GetView(self, *_args, **_kwargs)
InsertCols(self, *_args, **_kwargs)
InsertRows(self, *_args, **_kwargs)
SetAttr(self, *_args, **_kwargs)
SetAttrProvider(self, *_args, **_kwargs)
SetColAttr(self, *_args, **_kwargs)
SetColLabelValue(self, *_args, **_kwargs)
SetRowAttr(self, *_args, **_kwargs)
SetRowLabelValue(self, *_args, **_kwargs)
SetValueAsBool(self, *_args, **_kwargs)
SetValueAsDouble(self, *_args, **_kwargs)
SetValueAsLong(self, *_args, **_kwargs)
SetView(self, *_args, **_kwargs)

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

 
class OOTable(wxPyGridTableBase)
    (Virtual) Base class for object-oriented tables
 
 
Method resolution order:
OOTable
wxPyGridTableBase
wxPyGridTableBasePtr
wxGridTableBasePtr
wxObjectPtr

Methods defined here:
GetAdapter(self)
Get the current adapter for the table
GetAttr(self, row, col, someExtraParameter)
Part of a workaround to avoid use of attributes
 
Queried by _PropertyGrid's IsCurrentCellReadOnly
GetObjectForCoordinate(self, row, col)
Return the object corresponding to row/col coordinate
GetPropertyForCoordinate(self, row, col)
Return the property corresponding to row/col coordinate
GetTypeName(self, row, col)
Return the data type value for the property
GetValue(self, row, col)
Return the (row,col) value as a string value
 
Note: the conversion to string occurs in the underlying
machinery, not in the Python code.
GetValueAsObject(self, row, col)
Return the (row,col) value as a Python object
 
Note: this method is seperate from the GetValue method
because that method's support machinery auto-
converts the result to string values.
IsEmptyCell(self, row, col)
Determine whether the cell is "empty", to avoid both display and editing
ResetView(self)
Trim/extend the control's rows and update all values
SetAdapter(self, adapter)
Set the current adapter for the table
SetValue(self, row, col, value)
Set a new value for row,col as value, send property-changed events
UpdateValues(self)
Update all displayed values
__init__(self, view, adapter=None)
getGrid(self)
getView(self)
### Utility methods

Data and other attributes defined here:
currentColumns = 1
currentRows = 0

Methods inherited from wxPyGridTableBasePtr:
Destroy(self, *_args, **_kwargs)
__repr__(self)
base_AppendCols(self, *_args, **_kwargs)
base_AppendRows(self, *_args, **_kwargs)
base_CanGetValueAs(self, *_args, **_kwargs)
base_CanHaveAttributes(self, *_args, **_kwargs)
base_CanSetValueAs(self, *_args, **_kwargs)
base_Clear(self, *_args, **_kwargs)
base_DeleteCols(self, *_args, **_kwargs)
base_DeleteRows(self, *_args, **_kwargs)
base_GetAttr(self, *_args, **_kwargs)
base_GetColLabelValue(self, *_args, **_kwargs)
base_GetRowLabelValue(self, *_args, **_kwargs)
base_GetTypeName(self, *_args, **_kwargs)
base_InsertCols(self, *_args, **_kwargs)
base_InsertRows(self, *_args, **_kwargs)
base_SetAttr(self, *_args, **_kwargs)
base_SetColAttr(self, *_args, **_kwargs)
base_SetColLabelValue(self, *_args, **_kwargs)
base_SetRowAttr(self, *_args, **_kwargs)
base_SetRowLabelValue(self, *_args, **_kwargs)

Methods inherited from wxGridTableBasePtr:
AppendCols(self, *_args, **_kwargs)
AppendRows(self, *_args, **_kwargs)
CanGetValueAs(self, *_args, **_kwargs)
CanHaveAttributes(self, *_args, **_kwargs)
CanSetValueAs(self, *_args, **_kwargs)
Clear(self, *_args, **_kwargs)
DeleteCols(self, *_args, **_kwargs)
DeleteRows(self, *_args, **_kwargs)
GetAttrProvider(self, *_args, **_kwargs)
GetColLabelValue(self, *_args, **_kwargs)
GetNumberCols(self, *_args, **_kwargs)
GetNumberRows(self, *_args, **_kwargs)
GetRowLabelValue(self, *_args, **_kwargs)
GetValueAsBool(self, *_args, **_kwargs)
GetValueAsDouble(self, *_args, **_kwargs)
GetValueAsLong(self, *_args, **_kwargs)
GetView(self, *_args, **_kwargs)
InsertCols(self, *_args, **_kwargs)
InsertRows(self, *_args, **_kwargs)
SetAttr(self, *_args, **_kwargs)
SetAttrProvider(self, *_args, **_kwargs)
SetColAttr(self, *_args, **_kwargs)
SetColLabelValue(self, *_args, **_kwargs)
SetRowAttr(self, *_args, **_kwargs)
SetRowLabelValue(self, *_args, **_kwargs)
SetValueAsBool(self, *_args, **_kwargs)
SetValueAsDouble(self, *_args, **_kwargs)
SetValueAsLong(self, *_args, **_kwargs)
SetView(self, *_args, **_kwargs)

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

 
class ObjectTable(OOTable)
    A Property Table controls a PropertySet's binding to a single object
 
Basically, this looks like a VB property panel, or fairly close.
It accesses the objects using the propertydescriptors's, which,
in turn, normally use the underlying property objects for accessing
the particular object attributes.
 
 
Method resolution order:
ObjectTable
OOTable
wxPyGridTableBase
wxPyGridTableBasePtr
wxGridTableBasePtr
wxObjectPtr

Methods defined here:
GetColLabelValue(self, col)
GetNumberCols(self)
Return the number of cols (objects)
GetNumberRows(self)
Return the number of rows (properties)
GetObjectForCoordinate(self, row, col)
Return the object/client of the property at row/col
GetPropertyForCoordinate(self, row, col)
Return the property corresponding to row/col coordinate
GetRowLabelValue(self, row)

Methods inherited from OOTable:
GetAdapter(self)
Get the current adapter for the table
GetAttr(self, row, col, someExtraParameter)
Part of a workaround to avoid use of attributes
 
Queried by _PropertyGrid's IsCurrentCellReadOnly
GetTypeName(self, row, col)
Return the data type value for the property
GetValue(self, row, col)
Return the (row,col) value as a string value
 
Note: the conversion to string occurs in the underlying
machinery, not in the Python code.
GetValueAsObject(self, row, col)
Return the (row,col) value as a Python object
 
Note: this method is seperate from the GetValue method
because that method's support machinery auto-
converts the result to string values.
IsEmptyCell(self, row, col)
Determine whether the cell is "empty", to avoid both display and editing
ResetView(self)
Trim/extend the control's rows and update all values
SetAdapter(self, adapter)
Set the current adapter for the table
SetValue(self, row, col, value)
Set a new value for row,col as value, send property-changed events
UpdateValues(self)
Update all displayed values
__init__(self, view, adapter=None)
getGrid(self)
getView(self)
### Utility methods

Data and other attributes inherited from OOTable:
currentColumns = 1
currentRows = 0

Methods inherited from wxPyGridTableBasePtr:
Destroy(self, *_args, **_kwargs)
__repr__(self)
base_AppendCols(self, *_args, **_kwargs)
base_AppendRows(self, *_args, **_kwargs)
base_CanGetValueAs(self, *_args, **_kwargs)
base_CanHaveAttributes(self, *_args, **_kwargs)
base_CanSetValueAs(self, *_args, **_kwargs)
base_Clear(self, *_args, **_kwargs)
base_DeleteCols(self, *_args, **_kwargs)
base_DeleteRows(self, *_args, **_kwargs)
base_GetAttr(self, *_args, **_kwargs)
base_GetColLabelValue(self, *_args, **_kwargs)
base_GetRowLabelValue(self, *_args, **_kwargs)
base_GetTypeName(self, *_args, **_kwargs)
base_InsertCols(self, *_args, **_kwargs)
base_InsertRows(self, *_args, **_kwargs)
base_SetAttr(self, *_args, **_kwargs)
base_SetColAttr(self, *_args, **_kwargs)
base_SetColLabelValue(self, *_args, **_kwargs)
base_SetRowAttr(self, *_args, **_kwargs)
base_SetRowLabelValue(self, *_args, **_kwargs)

Methods inherited from wxGridTableBasePtr:
AppendCols(self, *_args, **_kwargs)
AppendRows(self, *_args, **_kwargs)
CanGetValueAs(self, *_args, **_kwargs)
CanHaveAttributes(self, *_args, **_kwargs)
CanSetValueAs(self, *_args, **_kwargs)
Clear(self, *_args, **_kwargs)
DeleteCols(self, *_args, **_kwargs)
DeleteRows(self, *_args, **_kwargs)
GetAttrProvider(self, *_args, **_kwargs)
GetValueAsBool(self, *_args, **_kwargs)
GetValueAsDouble(self, *_args, **_kwargs)
GetValueAsLong(self, *_args, **_kwargs)
GetView(self, *_args, **_kwargs)
InsertCols(self, *_args, **_kwargs)
InsertRows(self, *_args, **_kwargs)
SetAttr(self, *_args, **_kwargs)
SetAttrProvider(self, *_args, **_kwargs)
SetColAttr(self, *_args, **_kwargs)
SetColLabelValue(self, *_args, **_kwargs)
SetRowAttr(self, *_args, **_kwargs)
SetRowLabelValue(self, *_args, **_kwargs)
SetValueAsBool(self, *_args, **_kwargs)
SetValueAsDouble(self, *_args, **_kwargs)
SetValueAsLong(self, *_args, **_kwargs)
SetView(self, *_args, **_kwargs)

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

 
Data
        cvar = <Global variables>
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)