Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Add a quit button Tkinter

# Python program to create a close button
# using destroy Non-Class method

# Button for closing
exit_button = Button(root, text="Exit", command=root.destroy)
exit_button.pack(pady=20)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #Add #quit #button #Tkinter
ADD COMMENT
Topic
Name
9+4 =