def _get_parent_name(self):
parent = self.get_parent()<EOL>parent_names = []<EOL>while parent:<EOL><INDENT>if isinstance(parent, Component):<EOL><INDENT>parent_name = parent.name<EOL>if parent_name:<EOL><INDENT>parent_names.insert(<NUM_LIT:0>, parent_name)<EOL><DEDENT>parent = parent.get_parent()<EOL><DEDENT>else:<EOL><INDENT>break<EOL><DEDENT><DEDENT>if not parent_names:<EOL><INDENT>return None<EOL><DEDENT>else:<EOL><INDENT>return '<STR_LIT:.>'.join(parent_names)<EOL><DEDENT>
Return parent window name (used in __repr__ parent spec)