Skip to content

Instantly share code, notes, and snippets.

@serdkan
Created December 27, 2017 07:10
Show Gist options
  • Save serdkan/cf14e9d765cb2e5273ebbedb41a0843d to your computer and use it in GitHub Desktop.
Save serdkan/cf14e9d765cb2e5273ebbedb41a0843d to your computer and use it in GitHub Desktop.
Python - ClickEvent- ButtonClick
#_*_ coding:cp1254 _*_
from tkinter import *
pencere = Tk()
def bastir(Event):
print("butona basildi")
buton = Button(pencere,text="click please")
buton.bind("<Button-1>",bastir)
buton.grid(row=0,column=0)
pencere.mainloop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment