MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / get_windows

Method get_windows

pydevd_attach_to_process/winappdbg/thread.py:451–460  ·  view source on GitHub ↗

@rtype: list of L{Window} @return: Returns a list of windows handled by this thread.

(self)

Source from the content-addressed store, hash-verified

449 # Support for string searches on the window captions.
450
451 def get_windows(self):
452 """
453 @rtype: list of L{Window}
454 @return: Returns a list of windows handled by this thread.
455 """
456 try:
457 process = self.get_process()
458 except Exception:
459 process = None
460 return [Window(hWnd, process, self) for hWnd in win32.EnumThreadWindows(self.get_tid())]
461
462 # ------------------------------------------------------------------------------
463

Callers 1

get_windowsMethod · 0.45

Calls 3

get_processMethod · 0.95
get_tidMethod · 0.95
WindowClass · 0.90

Tested by

no test coverage detected