def GetAttr(self, row, col, someExtraParameter ): if col != 2: attr = wx.grid.wxGridCellAttr() attr.SetReadOnly( 1 ) return attr return None