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

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

 
Classes
       
BaseTableWorker
BaseViewer(BaseTableWorker, wxPyGridCellRenderer)
wxPyGridCellRenderer(wxPyGridCellRendererPtr)
BaseViewer(BaseTableWorker, wxPyGridCellRenderer)

 
class BaseViewer(BaseTableWorker, wxPyGridCellRenderer)
    Base class for editors
 
 
Method resolution order:
BaseViewer
BaseTableWorker
wxPyGridCellRenderer
wxPyGridCellRendererPtr
wxGridCellRendererPtr

Methods defined here:
Background(self, grid, attr, dc, rect, row, col, isSelected)
Draw an appropriate background based on selection state
Clip(self, dc, rect)
Setup the clipping rectangle
Draw(self, grid, attr, dc, rect, row, col, isSelected)
Customisation Point: Draw the data from grid in the rectangle with attributes using the dc
GetBestSize(self, grid, attr, dc, row, col)
Customisation Point: Determine the appropriate (best) size for the control, return as wxSize
 
Note: You _must_ return a wxSize object.  Returning a two-value-tuple
won't raise an error, but the value won't be respected by wxPython.
GetValueAsText(self, row, col)
Customisation Point: Retrieve the current value for row,col as a text string
SimpleText(self, value, attr, dc, rect, isSelected)
Draw a simple text label in appropriate colours with background
 
Uses the system settings at application load to draw a rectangle
(rect) in either system window background or system selected window
background.  Then draws the string "value" using either selected
text or normal text colours.
Unclip(self, dc)
Destroy the clipping rectangle

Data and other attributes defined here:
BACKGROUND = wxColour(255, 255, 255)
BACKGROUND_SELECTED = wxColour(10, 36, 106)
TEXT = wxColour(0, 0, 0)
TEXT_SELECTED = wxColour(255, 255, 255)

Methods inherited from BaseTableWorker:
Clone(self)
Create a new object which is the copy of this one
*Must Override*
GetCurrentTableValue(self, row, col, grid=None)
Retrieve the current value from the table
GetGrid(self)
Return a pointer to the Python grid object (hacky workaround)
SetCurrentTableValue(self, row, col, value, grid=None)
Set the current value in table to a value
SetGrid(self, object)
### OOR Hack/workaround, the grid passed to the editor's methods
### doesn't have access to the Python object, so we have to store
### another reference to be able to get to it and use it.

Data and other attributes inherited from BaseTableWorker:
gridReference = None

Methods inherited from wxPyGridCellRenderer:
__init__(self, *_args, **_kwargs)

Methods inherited from wxPyGridCellRendererPtr:
__repr__(self)
base_SetParameters(self, *_args, **_kwargs)

Methods inherited from wxGridCellRendererPtr:
DecRef(self, *_args, **_kwargs)
IncRef(self, *_args, **_kwargs)
SetParameters(self, *_args, **_kwargs)

 
Data
        READONLYBITMAP = <wxPython.gdi.wxBitmapPtr instance; proxy of C++ wxBitmap instance at _874788_wxBitmap_p>
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)