Combining events?

Bob Greschke <[email protected]>
Newsgroups gmane.comp.python.tkinter
Message-ID <[email protected]>
I have a huge program...several huge programs...and I keep writing duplicate sets of calls for <Return> and <KP_enter>.  I'm tired of it, even though they are already all written.  Is there any way to combine those (those two, specifically) into one bind like

x.bind(("<Return>", "<KP_Enter"), command = .....?

I know you can't do that, but something like that on a global scale (both figuratively, and programmatically).  Some little line of code at the beginning of the program that redirects the <KP_Enter> to the <Return> event when some field or whatever is specifically looking for either return key to be pressed?.

Thanks!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.