myMouse.isPressedIn()

The mouse isn’t like the keyboard, which sends discreet single clicks. It sends essentially the current state. isPressedIn() will be True on every frame that the mouse is held down for (it’s exceedingly hard to press and release within 16.6ms).
I think you’re wanting something to detect change in mouse state rather than whether it is currently down. The following works slightly differently to your code: checks if button is down, then checks whether it just went down and then checks where the mouse is.

# init (e.g. begin routine)
buttonWas = 'up'

# each frame
if myMouse.buttons[0]:
    if buttonWas=='up':
        if box1.contains(myMouse):
            frame1on = not frame1on
        elif box2.contains(myMouse):
            frame2on = not frame2on
        elif box3.contains(myMouse):
            frame3on = not frame3on
    buttonWas = 'down'
else:
    buttonWas = 'up'