def set_foreground(self):
"""Get the focus on the desired open window"""
logging.debug("set the window foreground")
if self.hwnd:
logging.debug("Find the window and set it as foreground")
win32gui.SetForegroundWindow(self.hwnd)
评论列表
文章目录