Professional Documents
Culture Documents
class WindowMgr:
"""Encapsulates some calls to the winapi for window management"""
def set_foreground(self):
"""put the window in the foreground"""
win32gui.SetForegroundWindow(self._handle)
w = WindowMgr()
w.find_window_wildcard(".*Telnet*")
w.set_foreground()