code: def quit(self, daemononly = False):
          '''
          Send quit event to quit the main loop
          '''
          if not self.quitting:
              self.quitting = True
              self.queue.append(SystemControlEvent(SystemControlEvent.QUIT, daemononly = daemononly), Truef quit(self, daemononly = False):
          '''
          Send quit event to quit the main loop
          '''
          if not self.quitting:
              self.quitting = True
              self.queue.append(SystemControlEvent(SystemControlEvent.QUIT, daemononly = daemononly), True)
docs: Send quit event to quit the main loop