def __init__(self): self.app = Qt.QApplication(sys.argv) self.__authWidget = AuthorizationWidget(self.authValidator) self.__view = View(self.app) self.__authWidget.show() self.app.exec_()