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

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

 
Classes
       
BaseViewer(BaseTableWorker, wxPyGridCellRenderer)
ListViewer

 
class ListViewer(BaseViewer)
    Viewer for a list of values
 
This should look like a vertical list of objects,
with more than (x) values simply trailing off the
bottom with an elipsis ... as the last value.
 
(This is just a preliminary test, not a finished
and polished class)
 
 
Method resolution order:
ListViewer
BaseViewer
BaseTableWorker
wxPyGridCellRenderer
wxPyGridCellRendererPtr
wxGridCellRendererPtr

Methods defined here:
Describe(self, object)
Describe the given object
Draw(self, grid, attr, dc, rect, row, col, isSelected)
Draw the data from grid in the rectangle with attributes using the dc
GetBestSize(self, grid, attr, dc, row, col)
Calculate the proper size for the control...

Data and other attributes defined here:
BORDER = 2
LABELWIDTH = 25
MAXSHOWN = 5

Methods inherited from BaseViewer:
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
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 inherited from BaseViewer:
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)