Using Python 2.7, Ubuntu 16.04, Gtk3 (gi.repository). I have an Entry with an associated EntryCompletion and a ListStore. I would like to let the user autoselect the first result when pressing the Enter/Intro/Return key, without having to use the arrow keys to select an item, and then press Enter. How could this be done?
Have you tried EntryCompletion.set_inline_completion(True) ?
This may not be exactly what you were looking for as it will not select the complete first match. However, if you type far enough (to only have one choice), you can press Enter to autocomplete the rest.
Tell me your thoughts on this and/or more details on what you are trying to do. Maybe there is another way to achieve the same functionality.
Python GTK EntryCompletion select first result when Intro