Gio.FilenameCompleter¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Name |
Short Description |
---|---|
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.
- 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 toGLib.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]¶
-
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.