def changeFocusTo(self, changeTo):
    if app.config.strict_debug:
        assert issubclass(self.__class__, ViewWindow), self
        assert issubclass(changeTo.__class__, ViewWindow), changeTo
    topWindow = self
    while topWindow.parent:
        topWindow = topWindow.parent
    topWindow.changeFocusTo(changeTo)
def changeFocusTo(self, changeTo):
    if app.config.strict_debug:
        assert issubclass(self.__class__, ViewWindow), self
        assert issubclass(changeTo.__class__, ViewWindow), changeTo
    topWindow = self
    while topWindow.parent:
        topWindow = topWindow.parent
    topWindow.changeFocusTo(changeTo)