def get_window(self):
x = self<EOL>while not x._parent == None andnot isinstance(x._parent, Window): <EOL><INDENT>x = x._parent<EOL><DEDENT>return x._parent<EOL>
Returns the object's parent window. Returns None if no window found.