btlabel3 = Tkinter.Label(text='bindtags: %s' % ' '.join(entry3.bindtags()))
status = Tkinter.Label(anchor='w')
entry1.grid(row=0, column=0)
btlabel1.grid(row=0, column=1, padx=10, sticky='w')
entry2.grid(row=1, column=0)
btlabel2.grid(row=1, column=1, padx=10, sticky='w')
entry3.grid(row=2, column=0)
btlabel3.grid(row=2, column=1, padx=10)
status.grid(row=3, columnspan=2, sticky='w')
entry1.bind('<KeyPress>', OnKeyPress)
entry2.bind('<KeyPress>', OnKeyPress)
entry3.bind_class('post-class-bindings', '<KeyPress>', OnKeyPress)
root.mainloop()
How to bind self events in Tkinter Text widget after it will binded by Text widget?