working of DisableCellEditControl in wxPython
I was playing with the wxPython.grid classes and observed the following
behavior on using DisableCellEditControl and HideCellEditControl:
the insertbar is not shown anymore, but the cell in question can still
be edited.
See code snippet below as derived from demo example
class SimpleGrid(wxGrid):
def __init__(self, parent, log):
self.log = log
wxGrid.__init__(self, parent, DEFAULT)
self.moveTo = None
wx.EVT_IDLE(self, self.OnIdle)
self.CreateGrid(10, 3)
# simple cell formatting
self.SetColSize(3, 200)
self.SetRowSize(4, 45)
self.SetCellValue(0, 0, "First cell")
self.HideCellEditControl()
self.DisableCellEditControl()
self.SetCellValue(1, 1, "Another cell")
[snip]
Sent via Deja.com http://www.*-*-*.com/
Before you buy.