Strangely

    root.bind('<Alt-KeyPress-1>', lambda event: nb.select(list[0]))
    root.bind('<Alt-KeyPress-2>', lambda event: nb.select(list[1]))
    root.bind('<Alt-KeyPress-3>', lambda event: nb.select(list[2]))

works

but
    root.bind('<Alt-1>', lambda event: nb.select(list[0]))
    root.bind('<Alt-2>', lambda event: nb.select(list[1]))
    root.bind('<Alt-3>', lambda event: nb.select(list[2]))

doesnt whereas

    root.bind('<Alt-5>', lambda event: nb.select(list[0]))

works


On 9/16/13, rhoit <the.n...@gmail.com> wrote:
> I'm trying to bing <Alt-1>, <Alt-2>, <Alt-3>... <Alt-9> to switch the
> ttk.Notebook() tab. but Alt-[1..5] doesn't seems to work any help!
>
> test code is here
> https://gist.github.com/6583664
> _______________________________________________
> Tkinter-discuss mailing list
> Tkinter-discuss@python.org
> https://mail.python.org/mailman/listinfo/tkinter-discuss
>
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss@python.org
https://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to