I have written a program which use thread in Tkinter. It works fine when I run this program on linux, but when the same program run on Windows it doesn't work. 
Problem exist when loop (which is run under thread) is ended and call function which cause to appear Toplevel window
Any suggestions??
Generally speaking, you can't use threading with Tkinter. Or more accurately, you can only access tkinter widgets and functions from the thread that created them. If your thread is creating a window, that simply will not work on windows, and may work non-deterministically on other platforms.
Is there any difference in threading between Linux and Windows on python?