def keluar(self): self.b= login.Ui() self.b.show() self.close()
def main(): app = QtWidgets.QApplication( sys.argv) # Create an instance of QtWidgets.QApplication window = login.Ui() # Llancem el login app.exec_() # Start the application