Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

close python window after execution

import required module 
from tkinter import *
  
create object
root = Tk()
  
create button to implement destroy()
Button(root, text="Quit", command=root.destroy).pack()
  
root.mainloop()
 
PREVIOUS NEXT
Tagged: #close #python #window #execution
ADD COMMENT
Topic
Name
1+2 =