Inherits from
- PyGridCellEditor: wx.grid.PyGridCellEditor
Method summary
- __init__(self, trait_editor_factory, obj, name, description, handler = None, context = None, style = 'simple', width = -Const(1.0), height = -Const(1.0))
- BeginEdit(self, row, col, grid)
- Clone(self)
- Create(self, parent, id, evtHandler)
- Destroy(self)
- dispose(self)
- EndEdit(self, row, col, grid)
- PaintBackground(self, rect, attr)
- Reset(self)
- SetSize(self, rect)
- Show(self, show, attr)
- StartingClick(self)
- StartingKey(self, evt)
Methods
- __init__(self, trait_editor_factory, obj, name, description, handler = None, context = None, style = 'simple', width = -Const(1.0), height = -Const(1.0))
Build a new TraitGridCellAdapter object.
- BeginEdit(self, row, col, grid)
Make sure the control is ready to edit.
- Clone(self)
Create a new object which is the copy of this one.
- Create(self, parent, id, evtHandler)
Called to create the control, which must derive from wxControl.
- Destroy(self)
Final cleanup.
- dispose(self)
- EndEdit(self, row, col, grid)
Do anything necessary to complete the editing.
- PaintBackground(self, rect, attr)
Draws the part of the cell not occupied by the edit control. The base class version just fills it with background colour from the attribute. In this class the edit control fills the whole cell so don't do anything at all in order to reduce flicker.
- Reset(self)
Reset the value in the control back to its starting value.
- SetSize(self, rect)
Called to position/size the edit control within the cell rectangle. If you don't fill the cell (the rect) then be sure to override PaintBackground and do something meaningful there.
- Show(self, show, attr)
Show or hide the edit control. You can use the attr (if not None) to set colours or fonts for the control.
- StartingClick(self)
If the editor is enabled by clicking on the cell, this method will be called to allow the editor to simulate the click on the control if needed.
- StartingKey(self, evt)
If the editor is enabled by pressing keys on the grid, this will be called to let the editor do something about that first key if desired.