titus.inspector.defs.TabCompleter

class titus.inspector.defs.TabCompleter(mode)[source]

Bases: object

Handles tab-completion in pfainspector.

__init__(mode)
Parameters:mode (titus.inspector.defs.Mode) – the pfainspector mode in which this tab completer is active
complete(text, state)
Parameters:
  • text (string) – partial text to complete
  • state (integer) – the number of times the user has pressed tab. If 0, generate a new list of candidates; otherwise, use the old one
Return type:

list of strings

Returns:

set of completions