def get_windows(self):
        """
        @rtype:  list of L{Window}
        @return: Returns a list of windows handled by this thread.
        """
        try:
            process = self.get_process()
        except Exception:
            process = None
        return [
                Window( hWnd, process, self ) \
                for hWnd in win32.EnumThreadWindows( self.get_tid() )
                ]
def get_windows ( self ) : try : process = self . get_process ( ) except Exception : process = None return [ Window ( hWnd , process , self ) for hWnd in win32 . EnumThreadWindows ( self . get_tid ( ) ) ]
@rtype:  list of L{Window}
        @return: Returns a list of windows handled by this thread.