User internally to get another Window from this one. It'll try to copy the parent Process and Thread references if possible.
(self, hWnd)
| 249 | self.__thread = thread |
| 250 | |
| 251 | def __get_window(self, hWnd): |
| 252 | """ |
| 253 | User internally to get another Window from this one. |
| 254 | It'll try to copy the parent Process and Thread references if possible. |
| 255 | """ |
| 256 | window = Window(hWnd) |
| 257 | if window.get_pid() == self.get_pid(): |
| 258 | window.set_process(self.get_process()) |
| 259 | if window.get_tid() == self.get_tid(): |
| 260 | window.set_thread(self.get_thread()) |
| 261 | return window |
| 262 | |
| 263 | # ------------------------------------------------------------------------------ |
| 264 |
no test coverage detected