(self, event)
(tab) Complete word or open list if multiple options.
(tab) Complete word or open list if multiple options.
( tab ) Complete word or open list if multiple options .
def autocomplete_event(self, event):
        "(tab) Complete word or open list if multiple options."
        if hasattr(event, "mc_state") and event.mc_state or\
                not self.text.get("insert linestart", "insert").strip():
            # A modifier was pressed along with the tab or
            # there is only previous whitespace on this line, so tab.
            return None
        if self.autocompletewindow and self.autocompletewindow.is_active():
            self.autocompletewindow.complete()
            return "break"
        else:
            opened = self.open_completions(TAB)
            return "break" if opened else None
def autocomplete_event ( self , event ) : if hasattr ( event , "mc_state" ) and event . mc_state or not self . text . get ( "insert linestart" , "insert" ) . strip ( ) : # A modifier was pressed along with the tab or # there is only previous whitespace on this line, so tab. return None if self . autocompletewindow and self . autocompletewindow . is_active ( ) : self . autocompletewindow . complete ( ) return "break" else : opened = self . open_completions ( TAB ) return "break" if opened else None