> > if D.has_key(event.keysym): > > str=D[event.keysym] > > self.text.insert(END,str) > > You can remove the 'text.' thats only used if text > were part of a class, which in this case it isn't. Oops, that should say remove 'self.' not text. Alan G.