Insert a Combobox into your GUI that allows suggestions based on what the user writes in
Project description
AutoCombobox
AutoCombobox is a Ttk widget based on the existing Combobox. It allows the user to write on the entry field, viewing at the same time some suggested option based on what the user writes. The suggestions are customizable through a function that can be defined by the developer.
Installation
AutoCombobox can be installed from PyPI using the command pip install autocombobox
.
It doesn't have any dependences other than Tkinter.
Usage
AutoCombobox was created specifically to be used like the normal Ttk Combobox, so all its options are available.
Beside that, it can accept the filter
option, that allows the developer to pass the function that determines the suggestions. The function must take 2 parameters: the first represent the list of all possible options of the Combobox, and the second represent the text written on the entry field; the function must returns a list of integers rappresenting the indices of the position of each option (a negative value indicates that the option will not be shown). There is a default filter function, that shows all the options that starts with the user input.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file autocombobox-1.3.0.tar.gz
.
File metadata
- Download URL: autocombobox-1.3.0.tar.gz
- Upload date:
- Size: 29.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 808fb1b4f77b9bf2d4abc84d3aba01e4ed0ca63cb14a7aa1dddf32c16d9899d4 |
|
MD5 | a5a6a06b3823c8ace25ed6df2ff979d1 |
|
BLAKE2b-256 | dd87a9b0e26901318d79c6e74fac9f8cc0e6c6700d4eaba037d97d6767630afa |
File details
Details for the file autocombobox-1.3.0-py3-none-any.whl
.
File metadata
- Download URL: autocombobox-1.3.0-py3-none-any.whl
- Upload date:
- Size: 30.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d27d09aa91619eab8d018cc3391f7433e3cef41b53c2a55120c81587be0569c4 |
|
MD5 | 69b13b31152601c7dd91bc3efc818b1e |
|
BLAKE2b-256 | 28437f1daa215d20da5214c8aa0b5e7f16a92b2d3e8fcc53c4cd2abaf8d4a472 |