def GetAttr(self, row, col, someExtraParameter ): attr = wx.grid.GridCellAttr() attr.SetReadOnly(True) return attr