D
D
dabiankolins12018-10-12 22:17:21
Python
dabiankolins1, 2018-10-12 22:17:21

Why does the window appear for a second and then disappear?

I made the Snake in python all on turtle (Tobish with tkinter) and I made the sound using Pygame
I wanted to make an .exe file, when I compiled and opened a window appeared for a second and the program immediately closed, before compiling into an executable, those when I opened it in ide no problem please help...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2018-10-13
@dabiankolins1

dabiankolins1 , add the last line:
and everything will work :)
Also with tkinter: it works from a py file, but in order for the window to linger on the screen in the exe-file and not disappear immediately, a similar line is needed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question