Answer the question
In order to leave comments, you need to log in
Does a window appear for a fraction of a second before opening the main tkinter window?
The problem is that when you start the program, a window appears on top in the corner for a fraction of a second (not the console, but the tkinter window, although in fact it is only one created).
The file with the code was uploaded here (all the code does not fit here): https://my-files.su/eiipa2
Answer the question
In order to leave comments, you need to log in
I removed the line with the icon and this window stopped appearing. It turns out because of the icon? But why?
UPD: I asked myself, I answered myself. In general, all of a sudden someone will have the same problem, changed the line of code that is higher to thiswindow.iconbitmap('favicon.ico')
window.iconphoto(True, tk.PhotoImage(file = 'favicon.png'))
and the window no longer appears.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question