Setting tkinter to always be the current active window
问题 I'm trying to use tkinter as a way to toggle an automation process. The snippet I have below works, but the hotkeys will only work when the tkinter window is the current active window. I found this topic discussing how this can be done, but these methods seem to be OS specific and none seem to work for Windows 10. import tkinter as tk class Automate(tk.Frame): __loop__ = None def __init__(self, master): super(Automate, self).__init__(master) # F7 initiates the loop. self.master.bind('<F7>',