Re: [Tkinter-discuss] Tkinter and Alt bindings

2012-02-09 Thread Russell Adams
On Thu, Feb 09, 2012 at 09:04:31PM +0100, Michael Lange wrote: > now I am getting confused ;) Welcome to the club. ;] > When I run the above example (or the one by the OP) and press Alt-s, > nothing is inserted in the entry, and that is just what I would expect > as of the widget's default bindin

Re: [Tkinter-discuss] Tkinter and Alt bindings

2012-02-09 Thread Bryan Oakley
On Feb 9, 2012, at 2:04 PM, Michael Lange wrote: > > The default bindings are defined in entry.tcl, the relevant part looks > like: > > # Ignore all Alt, Meta, and Control keypresses unless explicitly bound. > # Otherwise, if a widget binding for one of these is defined, the > # class bind

Re: [Tkinter-discuss] Tkinter and Alt bindings

2012-02-09 Thread Michael Lange
Hi, Thus spoketh Bryan Oakley unto us on Thu, 9 Feb 2012 08:58:25 -0600: > On Thursday, February 9, 2012, Russell Adams > wrote: > > On Thu, Feb 09, 2012 at 11:22:47AM +0100, Michael Lange wrote: > >> Hi, > >> > >> ## > >> entry .e > >> grid .e -column 0 -row 0 > >> bind . {puts "Alt-

Re: [Tkinter-discuss] Tkinter and Alt bindings

2012-02-09 Thread Russell Adams
On Thu, Feb 09, 2012 at 08:58:25AM -0600, Bryan Oakley wrote: > 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. That's understood. I was j

Re: [Tkinter-discuss] Tkinter and Alt bindings

2012-02-09 Thread Bryan Oakley
On Thursday, February 9, 2012, Russell Adams wrote: > On Thu, Feb 09, 2012 at 11:22:47AM +0100, Michael Lange wrote: >> Hi, >> >> ## >> entry .e >> grid .e -column 0 -row 0 >> bind . {puts "Alt-s pressed"} >> focus .e >> # >> >> If you store this as test.tcl and then run it with $

Re: [Tkinter-discuss] Tkinter and Alt bindings

2012-02-09 Thread Russell Adams
On Thu, Feb 09, 2012 at 11:22:47AM +0100, Michael Lange wrote: > Hi, > > ## > entry .e > grid .e -column 0 -row 0 > bind . {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

Re: [Tkinter-discuss] Tkinter and Alt bindings

2012-02-09 Thread Michael Lange
Hi, Thus spoketh Russell Adams unto us on Wed, 8 Feb 2012 07:51:21 -0600: > I'd love to find a way to trace what's happening, but I'm not familiar > enough with Tkinter. > > I started checking xmodmap and pursuing the xev avenue, but cannot > explain the behavior. > > At this I'm isolating th