def __appInMainLoop(self):
        if self._first_run:
            self._first_run = False
            self.app.setNextForm(None)

        self.appInMainLoop()
Internal onMainLoop that configures shutdown on first form close.
dataset/ETHPy150Open facebook/sparts/sparts/tasks/tui.py/UITask.__appInMainLoop