Tkinter text entry with pyHook hangs GUI window
问题 I have a Tkinter GUI application that I need to enter text in. I cannot assume that the application will have focus, so I implemented pyHook, keylogger-style. When the GUI window does not have focus, text entry works just fine and the StringVar updates correctly. When the GUI window does have focus and I try to enter text, the whole thing crashes. i.e., if I click on the console window or anything else after launching the program, text entry works. If I try entering text immediately (the GUI