Dazzle.SuggestionEntryBuffer

g Dazzle.SuggestionEntryBuffer Dazzle.SuggestionEntryBuffer GObject.Object GObject.Object Gtk.EntryBuffer Gtk.EntryBuffer GObject.Object->Gtk.EntryBuffer Gtk.EntryBuffer->Dazzle.SuggestionEntryBuffer

Subclasses:

None

Methods

Inherited:

Gtk.EntryBuffer (11), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

clear ()

commit ()

get_suggestion ()

get_typed_length ()

get_typed_text ()

set_suggestion (suggestion)

Virtual Methods

Inherited:

Gtk.EntryBuffer (6), GObject.Object (7)

Properties

Inherited:

Gtk.EntryBuffer (3)

Name

Type

Flags

Short Description

suggestion

Dazzle.Suggestion

r/w/en

The suggestion currently selected

Signals

Inherited:

Gtk.EntryBuffer (2), GObject.Object (1)

Fields

Inherited:

Gtk.EntryBuffer (2), GObject.Object (1)

Name

Type

Access

Description

parent_instance

Gtk.EntryBuffer

r

Class Details

class Dazzle.SuggestionEntryBuffer(**kwargs)
Bases:

Gtk.EntryBuffer

Abstract:

No

Structure:

Dazzle.SuggestionEntryBufferClass

classmethod new()
Return type:

Dazzle.SuggestionEntryBuffer

clear()
commit()
get_suggestion()
Returns:

An Dazzle.Suggestion or None.

Return type:

Dazzle.Suggestion or None

Gets the Dazzle.Suggestion that is the current “preview suffix” of the text in the entry.

get_typed_length()
Return type:

int

get_typed_text()
Return type:

str

set_suggestion(suggestion)
Parameters:

suggestion (Dazzle.Suggestion or None) – An Dazzle.Suggestion or None

Sets the current suggestion for the entry buffer.

The suggestion is used to get a potential suffix for the current entry text. This allows the entry to show “preview text” after the entered text for what might be inserted should they activate the current item.

Property Details

Dazzle.SuggestionEntryBuffer.props.suggestion
Name:

suggestion

Type:

Dazzle.Suggestion

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The suggestion currently selected