'Puts an event on the queue for dispatch.
This method is called by the native event thread to
put events on the queue for later dispatch by the
green thread. Any use of logging APIs is forbidden.'

def _queue_event(self, event):

    if (self._event_queue is None):
        return
    self._event_queue.put(event)
    c = '    '.encode()
    self._event_notify_send.write(c)
    self._event_notify_send.flush()
