Calling someone a pie is another way of calling someone an idiot. When they've done something stupid, or annoying.
Pete just spilled his juice, what a pie.
15👍 5👎