Faqts : Business : Programming : Shopping For You : Python : Tkinter

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

4 of 7 people (57%) answered Yes
Recently 4 of 7 people (57%) answered Yes

Entry

How to bind a key <Control-C> to a widget?

Mar 31st, 2009 10:57
Scott Mandarich, Waldi Wolf, brian hako,


from Tkinter import *

root=Tk()

# An example for the root window widget

def click(ptr):
	print 'Control-C'
	
root.bind('<Control-c>',click)

root.mainloop()













http://www.golfgolfcourses.com/index.php?q=Louisiana