[wxPython-users] GridCellNumberEditor crash

Robin Dunn robin at alldunn.com
Sun Dec 3 16:28:41 PST 2006


Ronald A. Stack wrote:
> One more question,
> it seems that attaching a new editor just to change the limits is a bit,
> well, overkill. It seems that one should be able to get a handle to the
> cell editor and use it's SetParameters() function to update the min/max
> values eliminating the need for the CallAfter method, however, this did
> not seem to work either; what is the preferred method to modify a behavior
> of a cell editor??

The cell editor has already created the wx.SpinCtrl, so although calling 
SetParameters does change the values in the editor object, since it 
doesn't recreate the spinctrl each time it is shown then it has no effect.

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list