parameters: (self, event)
docstring: Happens when the user wants to complete his word, and if necessary,
          open a completion list after that (if there is more than one
          completion)
docstring_summary: Happens when the user wants to complete his word, and if necessary,
          open a completion list after that (if there is more than one
          completion)
docstring_tokens: Happens when the user wants to complete his word and if necessary open a completion list after that ( if there is more than one completion )
function: def autocomplete_event(self, event):
          """Happens when the user wants to complete his word, and if necessary,
          open a completion list after that (if there is more than one
          completion)
          """
          if hasattr(event, "mc_state") and event.mc_state:
              # A modifier was pressed along with the tab, continue as usual.
              return
          if self.autocompletewindow and self.autocompletewindow.is_active():
              self.autocompletewindow.complete()
              return "break"
          else:
              opened = self.open_completions(False, True, True)
              if opened:
                  return "break"
function_tokens: def autocomplete_event ( self , event ) : if hasattr ( event , "mc_state" ) and event . mc_state : # A modifier was pressed along with the tab, continue as usual. return if self . autocompletewindow and self . autocompletewindow . is_active ( ) : self . autocompletewindow . complete ( ) return "break" else : opened = self . open_completions ( False , True , True ) if opened : return "break"