Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

disable close button in tkinter

def myfun():
	print("Close Disable")
root.protocol('WM_DELETE_WINDOW',myfun)
# Disable All Button Like Close, minimize, maximum
root.attributes('-disabled', True)
 
PREVIOUS NEXT
Tagged: #disable #close #button #tkinter
ADD COMMENT
Topic
Name
9+5 =