I posted the wrong code before. The code
is:
from Tkinter import *
D={a:"tom", b:"dick", c:"harry"}
text.bind('<Key>',
self.Conv) def Conv(self,event):
if D.has_key(event.keysym): str=D[event.keysym] self.text.insert(END,str) return 'break' The error message says wrong syntax...
What I am basically trying to do is to allow the
output of dictionary values for each keyboard button pressed.
Igor
|
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor