Re: Accelerator keys cross-platform

Michael Lange <[email protected]>
Newsgroups gmane.comp.python.tkinter
Message-ID <[email protected]>
Hi,

On Sat, 26 Dec 2015 10:47:47 -0500
Kevin Walzer <[email protected]> wrote:

> 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>

or simply

>>> mod = 'Control'
>>> print('<%s-f>' % mod)
<Control-f>
>>> 

Regards

Michael

.-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.

	"The combination of a number of things to make existence
worthwhile." "Yes, the philosophy of 'none,' meaning 'all.'"
		-- Spock and Lincoln, "The Savage Curtain", stardate
                   5906.4
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.