In this program the tkinter window only opens in the end when exit is given. I have tried various google searches but still couldn\'t find any solution. I hope it can be fix