Re: Accelerator keys cross-platform

Kevin Walzer <[email protected]>
Newsgroups gmane.comp.python.tkinter
Organization WordTech Communications LLC
Message-ID <[email protected]>
On 12/26/15 9:42 AM, Kevin Walzer wrote:
> window.bind('<Command-or-control-W'>, lambda event: window.hide())
I found the string formatter call, cf:

 >>> mod = 'Control'
 >>> print("<{}-f>".format(mod))
<Control-f>

Looks like I'm in business! Thanks for the help.

-- 
Kevin Walzer
Code by Kevin/Mobile Code by Kevin
http://www.codebykevin.com
http://www.wtmobilesoftware.com
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.