I am trying to make a new window whenever the code is ran. I don\'t know why, but every time I run the code, the window opens then closes a second later. My code is as follo