Skip to main content

CTkTableRowSelector

Wrapper class around CTkTable to let users select rows. PyPI PyPI - License Code style: black

Features

  • Plug&Play: No shady attributes, create an instance and get the values you need.
  • Easy to use interface.
  • Select multiple rows using CTRL-Key.
  • Headers are selectable or not, based on your need.
  • 100% test coverage. All interactions with the CTkTable are tested using pytest.
  • Stable.
  • Vertical table support.

Install

pip install CTkTableRowSelector

Example

Note: You can run a more advanced example using python3 -m CTkTableRowSelector.

import customtkinter
from CTkTable import *
from CTkTableRowSelector import *

root = customtkinter.CTk()

value = [
    ["Header" + letter for letter in "ABCDE"],
    *[[i, i+1, i+2, i+3, i+4] for i in range(0, 25, 5)]
]
table = CTkTable(master=root, row=5, column=5, values=value)
table.pack(expand=True, fill="both", padx=20, pady=20)

# Add the selector
row_selector = CTkTableRowSelector(table)

# Get the value
button = customtkinter.CTkButton(
    root, text="Print selected rows", command=lambda: print(row_selector.get())
)
button.pack(pady=(0, 20))

root.mainloop()

## Licence This project is delivered under the MIT Licence.

Metadata

Release files for ctktablerowselector 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ctktablerowselector 1.0.1
File Size Uploaded
ctktablerowselector-1.0.1.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ctktablerowselector 1.0.1
File Interpreter ABI Platform
ctktablerowselector-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.6 kB

Release files / ctktablerowselector-1.0.1.tar.gz

Download URL ctktablerowselector-1.0.1.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
02725b21e6f15adf1ac0d82b4f20461f0a583c530c5f184fa54a2e57ee866f99
BLAKE2b-256 checksum
How to use checksums
0780f15e5002baecb6e212de461317c1a1ca58c953ef201751abd13460b1a354
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.2 Linux/6.2.0-24-generic

Release files / ctktablerowselector-1.0.1-py3-none-any.whl

Download URL ctktablerowselector-1.0.1-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
350632a6f4c56e4438284af13b8ea8c41211db1fbe96f8827abfe884b76d13e6
BLAKE2b-256 checksum
How to use checksums
f608727f7ec4857735e0f2143634577ea011e942734931501961a9de5325db2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.2 Linux/6.2.0-24-generic

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release 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