Posted to tcl by aspect at Wed Apr 13 01:56:26 GMT 2016view pretty

from Tkinter import *
from ttk import *

root = Tk()
e = Entry(root, text = "Type in here")
n = Notebook(root)

n.add(Text(n), text = "Tab 1")
n.add(Text(n), text = "Tab 2")
n.add(Text(n), text = "Tab 3")

e.pack()
n.pack()

e.bind('<Key-1>', lambda _: n.select(0))
e.bind('<Key-2>', lambda _: n.select(1))
e.bind('<Key-3>', lambda _: n.select(2))


root.mainloop()