Closing current window when opening another window
<p>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 <code>.destroy()</code> but that prevents the other window opening. I have my procedure which carries out the current window switch below. </p>

<pre><code>    def help1(self):
      root2=Toplevel(self.master)
      HelpWindow= HelpScreen.Help(root2)
</code></pre>

<p>I understand this question is quite common but i cant find a soloution on here which would be applicable for my code.</p>