Skip to main content

Insert a Combobox into your GUI that allows suggestions based on what the user writes in

Project description

AutoCombobox

PyPI

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autocombobox-1.2.0.tar.gz (29.4 kB view details)

Uploaded Source

Built Distribution

autocombobox-1.2.0-py3-none-any.whl (30.2 kB view details)

Uploaded Python 3

File details

Details for the file autocombobox-1.2.0.tar.gz.

File metadata

  • Download URL: autocombobox-1.2.0.tar.gz
  • Upload date:
  • Size: 29.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for autocombobox-1.2.0.tar.gz
Algorithm Hash digest
SHA256 5882f920e8226c15bfd48117eb4be879b9d09a7d19dcb8d3159b2d65b0999896
MD5 bcd1384af035ed652adb9fde8593ff16
BLAKE2b-256 e6f6764234a6ec72912da4ef79ca602f49b83317d4dae05ea64cda8c8a4722b2

See more details on using hashes here.

File details

Details for the file autocombobox-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: autocombobox-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 30.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for autocombobox-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3fc5bae33d6c853f589dc2a2caf8de180a2e77c683abe663744aa0467570ee23
MD5 adc6e50ebf0b67001f4a54ffad7a87d0
BLAKE2b-256 704fd779058ca8ef307cf6f7a635da9a7e257cef9b69f0af1819ca9bc06fda48

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page