def setParent(self, parent, layerIndex=sys.maxsize):
    'Setting the parent will cause the the window to refresh (i.e. if self\n        was hidden with detach() it will no longer be hidden).'
    if app.config.strict_debug:
        assert issubclass(self.__class__, ViewWindow), self
        assert issubclass(parent.__class__, ViewWindow), parent
    if self.parent:
        try:
            self.parent.zOrder.remove(self)
        except ValueError:
            pass
    self.parent = parent
    if parent:
        self.parent.zOrder.insert(layerIndex, self)
Setting the parent will cause the the window to refresh (i.e. if self
was hidden with detach() it will no longer be hidden).
def setParent(self, parent, layerIndex=sys.maxsize):
    'Setting the parent will cause the the window to refresh (i.e. if self\n        was hidden with detach() it will no longer be hidden).'
    if app.config.strict_debug:
        assert issubclass(self.__class__, ViewWindow), self
        assert issubclass(parent.__class__, ViewWindow), parent
    if self.parent:
        try:
            self.parent.zOrder.remove(self)
        except ValueError:
            pass
    self.parent = parent
    if parent:
        self.parent.zOrder.insert(layerIndex, self)