<reponame>anas652/button
n kjhimport Tkinter
window = Tkinter.Tk()
button = Tkinter.Button(window, text="do not press this because i will kill you.", width=40)
button.pack(padx=10, pady=10)
clickCount=0
def onClick(event):
	global clickCount
	clickCount = clickCount + 1
	if clickCount == 1:
		button.configure(text="seriously? do. not. press. it.")
	elif clickCount == 2:
		button.configure(text="gah! Next time, no more button.")
	else:
		button.pack_forget()

button.bind("<ButtonRelease-1>", onClick)








window.mainloop()
n kjhimport Tkinter
window = Tkinter.Tk()
button = Tkinter.Button(window, text="do not press this because i will kill you.", width=40)
button.pack(padx=10, pady=10)
clickCount=0
def onClick(event):
	global clickCount
	clickCount = clickCount + 1
	if clickCount == 1:
		button.configure(text="seriously? do. not. press. it.")
	elif clickCount == 2:
		button.configure(text="gah! Next time, no more button.")
	else:
		button.pack_forget()

button.bind("<ButtonRelease-1>", onClick)








window.mainloop()