def is_desktop_on_foreground(self): # pylint: disable=no-self-use
"""Detect "show desktop" or something close enough."""
foreground = win32gui.GetForegroundWindow()
return bool(
foreground and win32gui.GetClassName(foreground) == "WorkerW")
评论列表
文章目录