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

Method __get_window

pydevd_attach_to_process/winappdbg/window.py:251–261  ·  view source on GitHub ↗

User internally to get another Window from this one. It'll try to copy the parent Process and Thread references if possible.

(self, hWnd)

Source from the content-addressed store, hash-verified

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

Callers 4

get_parentMethod · 0.95
get_childrenMethod · 0.95
get_rootMethod · 0.95
get_child_atMethod · 0.95

Calls 7

get_pidMethod · 0.95
set_processMethod · 0.95
get_processMethod · 0.95
get_tidMethod · 0.95
set_threadMethod · 0.95
get_threadMethod · 0.95
WindowClass · 0.85

Tested by

no test coverage detected