I have created a program in python 3.4 using the GUI module tkinter. I want to tweak the code so when a new window is called it will close the current window then open up the new window. As at the moment the current window is just placed behind the new window rather than destroying it. I have attempted to use .destroy() but that prevents the other window opening. I have my procedure which carries out the current window switch below.
def help1(self):
root2=Toplevel(self.master)
HelpWindow= HelpScreen.Help(root2)
I understand this question is quite common but i cant find a soloution on here which would be applicable for my code.
grab_set / grab_releaseorwithdraw / deiconify, You need handle closing method becauseEx: if sub_window closed by system. need add status checker in main appif csub_window is exist- dsgdfg