Skip to main content

Tkinter table / sheet widget

Project description

tksheet - python tkinter table widget

PyPI version shields.io python License: MIT

GitHub Release Date Downloads

Help
Versions 6.x.x -> Documentation Wiki
Versions 7.x.x -> Documentation Wiki
Changelog
Questions
Issues
Suggestions

This library is maintained with the help of others. If you would like to contribute please read this help section.

Changes for versions 7+:

  • ALL extra_bindings() event objects have changed, information here.
  • The bound function for extra_bindings() with "edit_cell"/"end_edit_cell" no longer requires a return value and no longer sets the cell to the return value. Use this instead.
  • edit_cell_validation has been removed and replaced with the function edit_validation(), information here.
  • Only Python versions >= 3.8 are supported.
  • tksheet file names have been changed.
  • Many other smaller changes, see the changelog for more information.

Features

  • Display and modify tabular data
  • Stores its display data as a Python list of lists, sublists being rows
  • Runs smoothly even with millions of rows/columns
  • Edit cells directly
  • Cell values can potentially be any class, the default is any class with a __str__ method
  • Drag and drop columns and rows
  • Multiple line header and index cells
  • Expand row heights and column widths
  • Change fonts and font size (not for individual cells)
  • Change any colors in the sheet
  • Dropdowns, check boxes, progress bars
  • Treeview mode
  • Hide rows and/or columns
  • Left "w", Center "center" or Right "e" text alignment for any cell/row/column
"""
Versions 7+ have succinct and easy to read syntax:
"""
# set data
sheet["A1"].data = "edited cell A1"

# get data
column_b = sheet["B"].data

# add 2 empty columns and add the change to undo stack
sheet.insert_columns(columns=2, idx=4, undo=True)

# delete columns 0 and 3 and add the change to undo stack
sheet.delete_columns(columns=[0, 3], undo=True)

light blue theme

tksheet light blue theme

dark theme

tksheet dark theme

treeview mode

tksheet treeview

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

tksheet-7.2.23.tar.gz (154.5 kB view details)

Uploaded Source

Built Distribution

tksheet-7.2.23-py3-none-any.whl (157.9 kB view details)

Uploaded Python 3

File details

Details for the file tksheet-7.2.23.tar.gz.

File metadata

  • Download URL: tksheet-7.2.23.tar.gz
  • Upload date:
  • Size: 154.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for tksheet-7.2.23.tar.gz
Algorithm Hash digest
SHA256 4f4f7c01105750cc101117001943275d365c4752dbfd926e62efcf314e3e1fb3
MD5 551aa4d30264c1e90b16addbf8414502
BLAKE2b-256 639236828b839c3cc794d208cebdd6977952e70aa064db768ad7f0e6bdb5ea2a

See more details on using hashes here.

File details

Details for the file tksheet-7.2.23-py3-none-any.whl.

File metadata

  • Download URL: tksheet-7.2.23-py3-none-any.whl
  • Upload date:
  • Size: 157.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for tksheet-7.2.23-py3-none-any.whl
Algorithm Hash digest
SHA256 6d65fdd71ceec44a33bddb62850f5905430ffb1dd5289e69f859e0d5ed7fd09f
MD5 3ab6f819ef1cc1fb7c164eb9e831e193
BLAKE2b-256 317a85e8d970e35e76c375f16b8568dcf276aafbb985b96c2ff5d60cd69e5cae

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