繁体   English   中英

Python 3 Tkinter:当 window 不在焦点上时,您如何听取用户输入?

[英]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将 window 放在焦点上。 有什么办法可以让我 go 这样做吗?

Tkinter 不支持此功能。 Tkinter 只有在获得焦点时才能响应事件。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM