(self, new=True)
Hide a window from the task bar.
        Kept the old way just to be on the safe side.
Hide a window from the task bar.
        Kept the old way just to be on the safe side.
Hide a window from the task bar . Kept the old way just to be on the safe side .
def hide(self, new=True):
        """Hide a window from the task bar.
        Kept the old way just to be on the safe side.
        """
        if new:
            ctypes.windll.user32.ShowWindow(self.hwnd, False)
        else:
            self.minimise()
            ctypes.windll.user32.ShowWindow(self.hwnd, 0)
            ctypes.windll.user32.SetWindowLongA(self.hwnd, -20,
                                                ctypes.windll.user32.GetWindowLongA(self.hwnd, -20) | 128)
            ctypes.windll.user32.ShowWindow(self.hwnd, 5)
def hide ( self , new = True ) : if new : ctypes . windll . user32 . ShowWindow ( self . hwnd , False ) else : self . minimise ( ) ctypes . windll . user32 . ShowWindow ( self . hwnd , 0 ) ctypes . windll . user32 . SetWindowLongA ( self . hwnd , - 20 , ctypes . windll . user32 . GetWindowLongA ( self . hwnd , - 20 ) | 128 ) ctypes . windll . user32 . ShowWindow ( self . hwnd , 5 )