Skip to main content

Enhanced CTkScrollableDropdown with pagination, search and groups support

Project description

CTkScrollableDropdownPP

PyPI Downloads

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()
app.geometry("400x300")

combobox = ctk.CTkComboBox(
    master=app,
    values=[],
    width=200,
    height=30
)
combobox.pack(pady=50)

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

dropdown = CTkScrollableDropdown(
    attach=combobox,
    values=values,
    command=lambda v: print("Selected:", v),
    autocomplete=True,
    groups=[
        ('1-50', r'^Item ([1-9]|[1-4][0-9]|50)$'),
        ('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.4.tar.gz (7.9 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.4-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ctkscrollabledropdownpp-2.0.4.tar.gz
  • Upload date:
  • Size: 7.9 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.4.tar.gz
Algorithm Hash digest
SHA256 5fcf25f4b7bdbb6e3729d8526871e3f48e81504e37083d3c1b626bdef052a1a7
MD5 23af0122776e2ac411ab3973db5249b6
BLAKE2b-256 6d302d833374f951a2fafa318902499774ef23350e644ab1ec5d2f72b9f0c90b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ctkscrollabledropdownpp-2.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 dc30e242fe8a78a3b514522004374831a77bb3b30298ae5a645ad4758ba168a0
MD5 7d139e7f72cd51eb7f3b7cbcdc49cc58
BLAKE2b-256 8b0e82c916b2bb3f7d963a135554307490bb2a792fcf1153c8bc764cd8f8e936

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