wxoo.datetime.timeofdayviewer
index
p:\wxproperties\wxoo\datetime\timeofdayviewer.py

Grid viewer for a time-of-day object

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

 
Classes
       
BaseViewer(BaseTableWorker, wxPyGridCellRenderer)
TimeOfDayViewer

 
class TimeOfDayViewer(BaseViewer)
    TimeOfDay viewer as clock + 24 hour formatted time
 
 
Method resolution order:
TimeOfDayViewer
BaseViewer
BaseTableWorker
wxPyGridCellRenderer
wxPyGridCellRendererPtr
wxGridCellRendererPtr

Methods defined here:
Draw(self, grid, attr, dc, rect, row, col, isSelected)
Draw the data from grid in the rectangle with attributes using the dc
DrawClock(self, dc, rect, timeValue)
Draw a clock showing hour,minute in rectangle using dc
GetBestSize(self, grid, attr, dc, row, col)
Calculate an appropriate size for this control, return as wxSize
GetValueAsText(self, row, col)
Return time value as a friendly text value

Data and other attributes defined here:
clockRadius = 12

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
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)