parameters: (self, *e_filter)
docstring: Get a list of events that are triggered.
  
          Args:
              *e_filter (List[ti.GUI.EVENT]): The type of events to be filtered.
  
          Returns:
              :class:`~taichi.misc.gui.GUI.EVENT` :A list of events that are triggered.
docstring_summary: Get a list of events that are triggered.
docstring_tokens: Get a list of events that are triggered .
function: def get_events(self, *e_filter):
          """Get a list of events that are triggered.
  
          Args:
              *e_filter (List[ti.GUI.EVENT]): The type of events to be filtered.
  
          Returns:
              :class:`~taichi.misc.gui.GUI.EVENT` :A list of events that are triggered.
  
          """
          e_filter = e_filter and GUI.EventFilter(*e_filter) or None
  
          while True:
              if not self.has_key_event():
                  break
              e = self.get_key_event()
              if e_filter is None or e_filter.match(e):  # pylint: disable=E1101
                  yield e
function_tokens: def get_events ( self , * e_filter ) : e_filter = e_filter and GUI . EventFilter ( * e_filter ) or None while True : if not self . has_key_event ( ) : break e = self . get_key_event ( ) if e_filter is None or e_filter . match ( e ) : # pylint: disable=E1101 yield e