Gio.FilenameCompleter¶
| Subclasses: | None |
|---|
Methods¶
| Inherited: | GObject.Object (37) |
|---|---|
| Structs: | GObject.ObjectClass (5) |
| class | new () |
get_completion_suffix (initial_text) |
|
get_completions (initial_text) |
|
set_dirs_only (dirs_only) |
Properties¶
None
Signals¶
| Inherited: | GObject.Object (1) |
|---|
| Name | Short Description |
|---|---|
got-completion-data |
Emitted when the file name completion information comes available. |
Fields¶
| Inherited: | GObject.Object (1) |
|---|
Class Details¶
-
class
Gio.FilenameCompleter(**kwargs)¶ Bases: GObject.ObjectAbstract: No Structure: Gio.FilenameCompleterClassCompletes 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.
-
classmethod
new()[source]¶ Returns: a Gio.FilenameCompleter.Return type: Gio.FilenameCompleterCreates a new filename completer.
-
get_completion_suffix(initial_text)[source]¶ Parameters: initial_text ( str) – text to be completed.Returns: a completed string, or Noneif no completion exists. This string is not owned by GIO, so remember toGLib.free() it when finished.Return type: strObtains 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: dirs_only ( bool) – abool.If dirs_only is
True, self will only complete directory names, and not file names.
-
do_got_completion_data() virtual¶
-
classmethod
Signal Details¶
-
Gio.FilenameCompleter.signals.got_completion_data(filename_completer)¶ Signal Name: got-completion-dataFlags: RUN_LASTParameters: filename_completer ( Gio.FilenameCompleter) – The object which received the signalEmitted when the file name completion information comes available.