Package gui :: Package components :: Module grid :: Class Delay_num_cell_editor
[hide private]
[frames] | no frames]

Class Delay_num_cell_editor

source code


Custom GridCellEditor for the number of delays grid cells.

Changing these cells will update the relaxation delay times.

Instance Methods [hide private]
PyGridCellEditor
__init__(self, min=None, max=None, parent=None)
Initialise the class.
source code
 
BeginEdit(self, row, col, grid)
Start the editing.
source code
GridCellEditor
Clone(self)
Create and return a new class instance.
source code
 
Create(self, parent, id, evtHandler)
Create the control for the cell.
source code
 
EndEdit(self, row, col, grid)
End the editing.
source code
 
Reset(self)
Reset the cell to the previous value.
source code
 
StartingKey(self, event)
Catch the starting key stroke to add the value to the cell.
source code

Inherited from wx.grid.PyGridCellEditor: SetParameters, __repr__, base_Destroy, base_HandleReturn, base_IsAcceptedKey, base_PaintBackground, base_SetParameters, base_SetSize, base_Show, base_StartingClick, base_StartingKey

Inherited from wx.grid.PyGridCellEditor (private): _setCallbackInfo

Inherited from wx.grid.GridCellEditor: Destroy, GetCellAttr, GetControl, HandleReturn, IsAcceptedKey, IsCreated, PaintBackground, SetCellAttr, SetControl, SetSize, Show, StartingClick

Inherited from wx.grid.GridCellWorker: DecRef, IncRef, __del__, __swig_destroy__

Inherited from wx.grid.GridCellWorker (private): _setOORInfo

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from wx.grid.PyGridCellEditor: thisown

Inherited from wx.grid.GridCellEditor: CellAttr, Control

Inherited from object: __class__

Method Details [hide private]

__init__(self, min=None, max=None, parent=None)
(Constructor)

source code 

Initialise the class.

Parameters:
  • min (None or int) - The minimum value for wx.SpinCtrl.
  • max (None or int) - The maximum value for wx.SpinCtrl.
  • parent (wx object) - The parent wx object.
Returns: PyGridCellEditor
Overrides: object.__init__

BeginEdit(self, row, col, grid)

source code 

Start the editing.

Parameters:
  • row (int) - The row index.
  • col (int) - The column index.
  • grid (wx.grid.Grid instance.) - The grid GUI element.
Overrides: wx.grid.GridCellEditor.BeginEdit

Clone(self)

source code 

Create and return a new class instance.

Returns: GridCellEditor
Overrides: wx.grid.GridCellEditor.Clone

Create(self, parent, id, evtHandler)

source code 

Create the control for the cell.

Parameters:
  • parent (wx object) - The parent wx object.
  • id (int) - The ID number.
  • evtHandler (func) - The event handler function.
Overrides: wx.grid.GridCellEditor.Create

EndEdit(self, row, col, grid)

source code 

End the editing.

Parameters:
  • row (int) - The row index.
  • col (int) - The column index.
  • grid (wx.grid.Grid instance.) - The grid GUI element.
Overrides: wx.grid.GridCellEditor.EndEdit

Reset(self)

source code 

Reset the cell to the previous value.

Overrides: wx.grid.GridCellEditor.Reset

StartingKey(self, event)

source code 

Catch the starting key stroke to add the value to the cell.

Parameters:
  • event (wx event) - The wx event.
Overrides: wx.grid.GridCellEditor.StartingKey