tkinter text <Key> event
Jay
jaysherby at gmail.com
Wed Sep 6 20:54:02 EDT 2006
I'm having trouble with using the <Key> event with the Text object.
When I use them together (which is a logical combination), I use this
code:
textbox = Text(root, wrap="word", height=15, width=50)
textbox.bind("<Key>", resolveGlyphs)
def resolveGlyphs(event):
textBuf = textbox.get(1.0, END)
print(textBuf)
What it prints out for me is everything except for the last character
-- the one that triggered the event. How can I get the entire
contents?
I apologize if this has already been discussed. I searched and
couldn't find it.
More information about the Python-list
mailing list