Gio.FilenameCompleter - Classes - Gio 2.0 (original) (raw)
g GObject.Object GObject.Object Gio.FilenameCompleter Gio.FilenameCompleter GObject.Object->Gio.FilenameCompleter
Subclasses:
None
Methods¶
Inherited:
Structs:
class | new () |
---|---|
get_completion_suffix (initial_text) | |
get_completions (initial_text) | |
set_dirs_only (dirs_only) |
Virtual Methods¶
Inherited:
do_got_completion_data () |
---|
Properties¶
None
Signals¶
Inherited:
Name | Short Description |
---|---|
got-completion-data | Emitted when the file name completion information comes available. |
Fields¶
Inherited:
Class Details¶
class Gio.FilenameCompleter(**kwargs)¶
Bases:
Abstract:
No
Structure:
Completes partial file and directory names given a partial string by looking in the file system for clues. Can return a list of possible completion strings for widget implementations.
Returns:
Return type:
Creates a new filename completer.
get_completion_suffix(initial_text)[source]¶
Parameters:
initial_text (str) – text to be completed.
Returns:
a completed string, or None if no completion exists. This string is not owned by GIO, so remember to GLib.free() it when finished.
Return type:
Obtains a completion for initial_text from self.
get_completions(initial_text)[source]¶
Parameters:
initial_text (str) – text to be completed.
Returns:
array of strings with possible completions for initial_text. This array must be freed by GLib.strfreev() when finished.
Return type:
[str]
Gets an array of completion strings for a given initial text.
set_dirs_only(dirs_only)[source]¶
Parameters:
If dirs_only is True, self will only complete directory names, and not file names.
do_got_completion_data() virtual¶
Signal Details¶
Gio.FilenameCompleter.signals.got_completion_data(filename_completer)¶
Signal Name:
got-completion-data
Flags:
Parameters:
filename_completer (Gio.FilenameCompleter) – The object which received the signal
Emitted when the file name completion information comes available.