I don't condone his behaviour, but at least Andy has never made any secret of the fact that he absolutely HATES losing, He even says in his autobiography that, when he was a child, members of his family used to let him win things like card and board games because he used to go into such a strop when he lost.
Whilst I can understand it to some extent, because it is the easy way out, I'm afraid that they have to take some of the responsibility for the way he behaves as an adult - and he certainly wouldn't have got away with it in my family! I'm not saying he should have got a good smacking, because I don't believe that ultimately that's the answer, but, with a little patience, there are other ways of getting it across to children that they can't always be the winner.
And now I've probably upset the PC brigade who think it's psychologically damaging for children to be losers ...
Glasgow Uni somehow gave me a degree in Psychology - given my lack of effort, I've lost all respect for the place!
However, whilst studying that, I kinda came to the conclusion that it's psychologically healthier to blame others and feel "cheated" after losing than it is to internalise it all. If you can mix hard work and understanding where you need to improve with an ability to shake off losses as "someone else's fault", it's probably the best mix.
I reckon the top players do that to some extent. I think Brad Gilbert tried to introduce this with Andy all those years ago, and we've seen how difficult he's found it to recover from big losses in the past as compared to Djokovic, Nadal or Federer (the only players he can be judged against in terms of talent). I think Andy has learned how to handle it all better now, hence his reaction after Wimbledon, and I wouldn't be surprised if part of that is to deflect some of the blame.