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 suffix completion string, or
NULLif no completion exists.- Return type:
Obtains a suffix completion for initial_text from self.
Suffix will be an empty string if there’s no shared suffix among matching completions. If there’s no matching completions anyway,
NULLis returned.
- 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.This function needs to be called before waiting for results from the completer to be populated.
- 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.