shift tab Tkinter

John Grayson johngrayson at home.com
Fri Feb 9 06:56:40 EST 2001


In article <95voh4$oj$1 at nnrp1.deja.com>,
  bernard604 at my-deja.com wrote:
> I can not get Tkinter to respond to any double key events.

This little snippet works...

from Tkinter import *

root = Tk()

def gotit(event):
    print 'Got Shift-Tab'

frame = Frame(root)
entry = Entry(frame)
entry.pack(anchor=CENTER)
frame.pack()

root.bind_class('Entry', '<Shift-Tab>', gotit)

root.mainloop()


   John Grayson


Sent via Deja.com
http://www.deja.com/



More information about the Python-list mailing list