[Tkinter-discuss] Tkinter and Alt bindings

Bryan Oakley bryan.oakley at gmail.com
Thu Feb 9 15:58:25 CET 2012


On Thursday, February 9, 2012, Russell Adams <RLAdams at adamsinfoserv.com>
wrote:
> On Thu, Feb 09, 2012 at 11:22:47AM +0100, Michael Lange wrote:
>> Hi,
>>
>> ##########
>> entry .e
>> grid .e -column 0 -row 0
>> bind . <Alt-s> {puts "Alt-s pressed"}
>> focus .e
>> #########
>>
>> If you store this as test.tcl and then run it with $ wish test.tcl , is
it
>> the same as in your Python example?
>
> Yes, Alt-s does not work. If I change it to Mod1, that triggers but
> still adds "s" to the entry widget.

Just to reiterate so there's no confusion: the "s" being inserted is a
feature, not a bug. I explained why in an earlier message and on
stackoverflow. It has to do with the default ordering of bind tags.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tkinter-discuss/attachments/20120209/6ff501bd/attachment.html>


More information about the Tkinter-discuss mailing list