Skip to main content

Enhanced CTkScrollableDropdown with pagination, search and groups support

Project description

CTkScrollableDropdownPP

CTkScrollableDropdownPP is an enhanced dropdown widget for CustomTkinter featuring pagination, live search, and grouping support.

Based on the original CTkScrollableDropdown project.

Features

  • Pagination for large lists
  • Real-time filtering
  • Grouped items (using regex or labels)
  • Autocomplete on typing
  • Fully customizable appearance

Installation

pip install ctkscrollabledropdownpp

Quick Start

import customtkinter as ctk
from ctkscrollabledropdownpp import CTkScrollableDropdown

app = ctk.CTk()
btn = ctk.CTkButton(app, text='Select')
btn.pack(pady=20)

values = [f"Item {i}" for i in range(1, 101)]

dropdown = CTkScrollableDropdown(
    attach=btn,
    values=values,
    command=lambda v: print("Selected:", v),
    items_per_page=20,
    pagination=True,
    autocomplete=True,
    groups=[('1-50', r'^Item [1-4]'), ('Others', '__OTHERS__')]
)

app.mainloop()

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

ctkscrollabledropdownpp-2.0.2.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

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

ctkscrollabledropdownpp-2.0.2-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file ctkscrollabledropdownpp-2.0.2.tar.gz.

File metadata

  • Download URL: ctkscrollabledropdownpp-2.0.2.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for ctkscrollabledropdownpp-2.0.2.tar.gz
Algorithm Hash digest
SHA256 d68e7add401c00c296b7f4776835c808755624f196400af973228ce2e0ed68e9
MD5 e5d3c5c072640fce2c659fa1d1e57b62
BLAKE2b-256 894869ea3abc5dc03034f8235505bed244f0ebee4649ff2b6a9ab06999d23043

See more details on using hashes here.

File details

Details for the file ctkscrollabledropdownpp-2.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for ctkscrollabledropdownpp-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1aad8fa255d806e527d544a57904971577b6211e600556855335966c79c37bd1
MD5 da6cf43e8394f5183bed94131f3b6a84
BLAKE2b-256 bdbfa4f07f10efa39e45f65ab4cbcdc88b1c4cea0f5d1d4a86ba90859d39ab12

See more details on using hashes here.

Supported by

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