def setController(self, controller):
    if app.config.strict_debug:
        assert issubclass(self.__class__, Window), self
    self.controller = controller(self)
def setController(self, controller):
    if app.config.strict_debug:
        assert issubclass(self.__class__, Window), self
    self.controller = controller(self)