def bringToFront(title):
 if (sys.platform != 'win32'):
  return
 import ctypes
 find_window = ctypes.windll.user32.FindWindowA
 set_foreground_window = ctypes.windll.user32.SetForegroundWindow
 hwnd = find_window(None, title)
 if (hwnd == 0):
  raise Exception(('There is no window titled: "%s"' % title))
 set_foreground_window(hwnd)

def bringToFront ( title ) : if ( sys . platform != 'win32' ) : return import ctypes find_window = ctypes . windll . user32 . FindWindowA set_foreground_window = ctypes . windll . user32 . SetForegroundWindow hwnd = find_window ( None , title ) if ( hwnd == 0 ) : raise Exception ( ( 'There is no window titled: "%s"' % title ) ) set_foreground_window ( hwnd )
bring a top-level window with a given title to the front on windows .