Friday, 27 May 2016

Search Entry Completion

The script shows how to create a search entry box with auto completion function in a GTK3 window.

An entry completion object is defined to handle the auto completion function, it contains a list of words which are used to match with the user input given in the search entry. A subset of words in the list which match with the user input will be shown during input process.

  1. Define a search entry box.
  2. Define a entry completion object for the search entry box.
  3. Define event handler for matched completion.
  4. Define a custom match function for the completion: Match partial word of items in a list.

Source Code


No comments:

Post a Comment