'Override exec_ to raise an exception when re-running.'

def exec_(self, flags=QEventLoop.AllEvents):

    if self._executing:
        raise AssertionError('Eventloop    is    already    running!')
    self._executing = True
    super().exec_(flags)
    self._executing = False
