That might work, but I am not going to endorse it. Spotted turtles are much bigger than gray treefrogs and may view one as a potential meal. It might work with a smaller turtle, but there may be trouble with an adult. Also check your state laws, spotted turtles are illegal to possess in a few different states.