PING
PING

Reputation: 11

Python 3 Tkinter: How do you listen to user inputs when the window is not in focus?

I am trying to create a python 3 program with tkinter that will listen to my keyboard input even while the window is not "focused," as in I would have a separate window open, say a browser and press the tab key, which would then put the window into focus. Is there any way that I could go about doing this?

Upvotes: 0

Views: 199

Answers (1)

Bryan Oakley
Bryan Oakley

Reputation: 385960

Tkinter has no support for this. Tkinter can only respond to events when it has focus.

Upvotes: 1

Related Questions