
If that does not help you could add root.update() just before the messagebox dialog. The example code you have does not show us you are using root.mainloop() so try adding that to the end of your program and see if that helps. It may be caused by not calling mainloop() at the end of your program. There are some other problems similar to yours. this does not happen when i run it on a windows pc When i run it, it works, but when i click 'ok' to close the messagebox it freezes and the spinning beachball appears. GreetingFile.write(messagebox.showinfo("Welcome to the board game!", "In this game, you will navigate"\ This is a new code i made, that is supposed to do the same thing: show a messagebox, and close. GreetingFile = open("greetingFile.txt", "r") This is the main bit of my code where i call the function: greeting() " across a 7x7 grid and the first player to reach square 49 wins."\ GreetingFile.write(messagebox.showinfo("Welcome to the board game!","In this game, you will navigate"\ GreetingFile = open("greetingFile.txt", "w") This is the function that the messagebox pops up from: def greeting(): I know this isn't a problem with my code as it works fine on the windows operating system, as i have run the code on a windows computer as well.

However, when i run the program, the messagebox shows, but when i click 'ok', it doesnt go away and i'm just stuck with the spinning beachball until i manually close the program. i have recently just begun working with GUI and have started with a simple messagebox.showinfo pop up.
