(self, new=True)
Bring a window into focus.
        Kept the old way just to be on the safe side.
Bring a window into focus.
        Kept the old way just to be on the safe side.
Bring a window into focus . Kept the old way just to be on the safe side .
def bring_to_front(self, new=True):
        """Bring a window into focus.
        Kept the old way just to be on the safe side.
        """
        if new:
            ctypes.windll.user32.ShowWindow(self.hwnd, True)
        else:
            self.restore()
        ctypes.windll.user32.SetForegroundWindow(self.hwnd)
def bring_to_front ( self , new = True ) : if new : ctypes . windll . user32 . ShowWindow ( self . hwnd , True ) else : self . restore ( ) ctypes . windll . user32 . SetForegroundWindow ( self . hwnd )