(self, *args, **kwargs)
| 38 | class AutocompleteCombobox(ttk.Combobox): |
| 39 | """A Combobox that filters its dropdown list as you type.""" |
| 40 | def __init__(self, *args, **kwargs): |
| 41 | super().__init__(*args, **kwargs) |
| 42 | self._all_values = [] |
| 43 | self.bind('<KeyRelease>', self._on_keyrelease) |
| 44 | |
| 45 | def set_completion_list(self, completion_list): |
| 46 | self._all_values = sorted(completion_list, key=str.lower) |