Skip to main content

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.

AutoCombobox makes available also various useful methods:

  • show_listbox and hide_listbox are the functions that manage the list of the Combobox options;
  • update_values takes an optional string and filters the list of all possible values based on it, to show only suggestions. If no strings is given, it is taken from the entry field;
  • select takes a string, and set the entry field with that. If the string is also in the possible value, it generate a <<ComboboxSelected>> event;
  • change_highlight takes the index of the option we want to hightlight.

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.7.0.tar.gz (35.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

autocombobox-1.7.0-py3-none-any.whl (30.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: autocombobox-1.7.0.tar.gz
  • Upload date:
  • Size: 35.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for autocombobox-1.7.0.tar.gz
Algorithm Hash digest
SHA256 b27d3b0d6083ad0e143f55c687a625aa1e931191a4d42bea9558ea515eceb50a
MD5 21e51601fa33e030850feda48b234acb
BLAKE2b-256 085d14684f76d8ad0271c473dff949c6028a38287513e7b90b0017a34ad9a93e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: autocombobox-1.7.0-py3-none-any.whl
  • Upload date:
  • Size: 30.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for autocombobox-1.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 caef9e76639ac15cd1d2a1be4dd9673aaf755413677960085046e883f0af3f0c
MD5 81613f7f42ef51d9314384dd822796c5
BLAKE2b-256 d916a048c37923079d9282ba4e144b6bbc335c8355c2e4399f877847b6eb6eff

See more details on using hashes here.

Release history Release notifications | RSS feed

1.7.1

2 files

This release

1.7.0 This release

2 files

1.6.0

2 files

1.5.1

2 files

1.5.0

2 files

1.4.2

2 files

1.4.0

2 files

1.3.2

2 files

1.3.1

2 files

1.3.0

2 files

1.2.0

2 files

1.1.1

2 files

1.1.0

2 files

1.0.2

2 files

1.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page