def isOver(button,pos):
    """
    This function determines if the user mouse is over a button.
    """
    if button != None:
    # Pos is the mouse position or a tuple of (x,y) coordinates
        if pos[0] > button.x and pos[0] < button.x + button.width:
            if pos[1] > button.y and pos[1] < button.y + button.height:
                return True
        return False