CompletionWords

class CompletionWords(**properties: Any)

Superclasses: Object

Implemented Interfaces: CompletionProvider

A CompletionProvider for the completion of words.

The GtkSourceCompletionWords is an example of an implementation of the CompletionProvider interface. The proposals are words appearing in the registered TextBuffer’s.

Constructors

class CompletionWords
classmethod new(title: str | None = None) CompletionWords
Parameters:

title – The title for the provider, or None.

Methods

class CompletionWords
register(buffer: TextBuffer) None

Registers buffer in the words provider.

Parameters:

buffer – a TextBuffer

unregister(buffer: TextBuffer) None

Unregisters buffer from the words provider.

Parameters:

buffer – a TextBuffer

Properties

class CompletionWords
props.minimum_word_size: int
props.priority: int
props.proposals_batch_size: int
props.scan_batch_size: int
props.title: str

Fields

class CompletionWords
parent_instance