title: My file still running but it isn't supposed to
body: <p>I was trying to import a file in a function and it didn't stop running when it is supposed to. Here is part of my code:</p>
  <pre><code>def imp():
      root.withdraw() #&quot;root&quot; is the window I created earlier in the code
      import file1 #some tkinter stuff
      root.deiconify()
   
  but=tk.Button(root,text='Run',command=imp)
  but=pack(side=tk.BOTTOM)
  </code></pre>
  <p>After ckicking the button and closing the window in &quot;file1.py&quot;, &quot;root&quot; dosen't pop back up. Does anyone know why? I cannot figure out a way to solve it, anyone please help.</p>
  <p>Sorry if I made anything unclear.</p>