project/grid.py
def click(self, pos):
        """
        Clicking on cell will change it's state from dead to live or vice versa
        """
        x, y = int(pos[0] / self.scale), int(pos[1] / self.scale)
        if self.curr_array[x][y] == 1:
            self.curr_array[x][y] = 0
        else:
            self.curr_array[x][y] = 1

        Clicking on cell will change it's state from dead to live or vice versa
        
Clicking on cell will change it's state from dead to live or vice versa
Clicking on cell will change it ' s state from dead to live or vice versa
def click(self, pos):
        x, y = int(pos[0] / self.scale), int(pos[1] / self.scale)
        if self.curr_array[x][y] == 1:
            self.curr_array[x][y] = 0
        else:
            self.curr_array[x][y] = 1
def click ( self , pos ) : x , y = int ( pos [ 0 ] / self . scale ) , int ( pos [ 1 ] / self . scale ) if self . curr_array [ x ] [ y ] == 1 : self . curr_array [ x ] [ y ] = 0 else : self . curr_array [ x ] [ y ] = 1
Clicking on cell will change it's state from dead to live or vice versa
Clicking on cell will change it ' s state from dead to live or vice versa
"""
        Clicking on cell will change it's state from dead to live or vice versa
        """
self
pos