title: Is there a way in pygame to make a programme pause when it's minimized?
body: <p>I was playing Terraria the other day and in a new update they make the game pause when it's minimized. Obviously it's written in a different programme to python, but I was wondering if it was possible to replicate the effects.</p>