(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:
            win32gui.ShowWindow(self.hwnd, False)
        else:
            self.minimise()
            win32gui.ShowWindow(self.hwnd, win32con.SW_HIDE)
            win32gui.SetWindowLong(self.hwnd, win32con.GWL_EXSTYLE,
                                   win32gui.GetWindowLong(self.hwnd, win32con.GWL_EXSTYLE) | win32con.WS_EX_TOOLWINDOW)
            win32gui.ShowWindow(self.hwnd, win32con.SW_SHOW)
def hide ( self , new = True ) : if new : win32gui . ShowWindow ( self . hwnd , False ) else : self . minimise ( ) win32gui . ShowWindow ( self . hwnd , win32con . SW_HIDE ) win32gui . SetWindowLong ( self . hwnd , win32con . GWL_EXSTYLE , win32gui . GetWindowLong ( self . hwnd , win32con . GWL_EXSTYLE ) | win32con . WS_EX_TOOLWINDOW ) win32gui . ShowWindow ( self . hwnd , win32con . SW_SHOW )