GimpUi.FileEntry
from gi.repository import GimpUi
file_entry = GimpUi.FileEntry()
This widget is used to enter filenames or directories.
There is a Gtk.Entry for entering the filename manually and a "..." button which will pop up a Gtk.FileChooserDialog.
You can restrict the GimpUi.FileEntry to directories. In this case the filename listbox of the Gtk.FileChooser dialog will be set to directory mode.
If you specify @check_valid as True in gimp_file_entry_new() the entered filename will be checked for validity and a pixmap will be shown which indicates if the file exists or not.
Whenever the user changes the filename, the "filename_changed" signal will be emitted.