[wxPython] wxGrid: catch attempt to edit read-only cell? visually mark r/o cells?

I'm looking for a way to catch the attempt to edit a read-only cell, so that I can display a status message telling the user why their attempts to start the editor don't succeed. However, the table's get attribute hook isn't only called when attempting to edit the cell, so I can't do the work there. From what I can see, the grid doesn't have a hook for catching this "event", it's just optimising it away as a no-op.

Alternately, I'm going to have to use custom renderers for every data type, with the renderers displaying an icon-overlay or the like telling the user the cell is read-only (I suppose I could even do it by changing colours, but I want something explicit).

Any other ideas or approaches?
Mike

···

_______________________________________
   Mike C. Fletcher
   http://members.rogers.com/mcfletch/

I'm looking for a way to catch the attempt to edit a read-only cell, so
that I can display a status message telling the user why their attempts
to start the editor don't succeed. However, the table's get attribute
hook isn't only called when attempting to edit the cell, so I can't do
the work there. From what I can see, the grid doesn't have a hook for
catching this "event", it's just optimising it away as a no-op.

Alternately, I'm going to have to use custom renderers for every data
type, with the renderers displaying an icon-overlay or the like telling
the user the cell is read-only (I suppose I could even do it by changing
colours, but I want something explicit).

I can't think of any other way to do it right off the top of my head, but it
sounds like it would be a good feature to have, (a real event for
modification attempt.) Perhaps you should bring it up on wx-dev.

···

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