def OnGridCellClicked(self, event):
    self.fieldsGrid.ClearSelection()
    self.fieldsGrid.SelectRow(event.Row)
    if (event.Col < 2):
        val = self.fieldsGrid.GetCellValue(event.Row, event.Col)
        val = ('' if val else '1')
        self.fieldsGrid.SetCellValue(event.Row, event.Col, val)
        if ((event.Col == 0) and (val == '')):
            self.fieldsGrid.SetCellValue(event.Row, 1, val)
        if ((event.Col == 1) and (val == '1')):
            self.fieldsGrid.SetCellValue(event.Row, 0, val)
def OnGridCellClicked(self, event):
    self.fieldsGrid.ClearSelection()
    self.fieldsGrid.SelectRow(event.Row)
    if (event.Col < 2):
        val = self.fieldsGrid.GetCellValue(event.Row, event.Col)
        val = ( if val else '1')
        self.fieldsGrid.SetCellValue(event.Row, event.Col, val)
        if ((event.Col == 0) and (val == )):
            self.fieldsGrid.SetCellValue(event.Row, 1, val)
        if ((event.Col == 1) and (val == '1')):
            self.fieldsGrid.SetCellValue(event.Row, 0, val)