@rtype: list of L{Window} @return: Returns a list of windows handled by this thread.
(self)
| 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 |
no test coverage detected