[Tkinter-discuss] how to change the values of keyboard keys in TKINTER

Kevin Walzer kw at codebykevin.com
Mon Jan 14 17:04:43 CET 2008


brindly sujith wrote:
> hi
> 
> i want to know how to change the values of keyboard keys(for example:
> I want to set alt+f4 to enter)
> 
> do we have any modules in tkinter for doing this...
> 
> plz tell me how we can do this
> 

Look at Tkinter/Tk's binding mechanism. It's very extensive and flexible.

Have you taken a look at any of the online tutorials for Tkinter?

http://www.pythonware.com/library/tkinter/introduction/index.htm
http://infohost.nmt.edu/tcc/help/lang/python/tkinter.html
http://www.ferg.org/thinking_in_tkinter/index.html

These are all good guides and might help with some of your questions.

-- 
Kevin Walzer
Code by Kevin
http://www.codebykevin.com


More information about the Tkinter-discuss mailing list