Thank you all for your help. I used showdialog() and that's exactly what I was looking for.