SkillAgentSearch skills...

Tksheet

Python tkinter table and treeview widget

Install / Use

/learn @ragardner/Tksheet

README

<p align="center" width="100%"> <img width="45%" src="https://github.com/user-attachments/assets/4afc1783-6461-4b98-93cb-b2a2a7f35169" alt="tksheet table"> <img width="45%"src="https://github.com/user-attachments/assets/08e77e89-00ea-4c52-9222-9bd421284360" alt="tksheet treeview"> </p>

<div align="center">tksheet - python tkinter table + treeview widget</div>

PyPI version Python Versions License: MIT

GitHub Release Date Downloads Downloads

With apologies, development of this library has ceased except for bug fixes or behavioral issues. Pull requests for other changes are unlikely to be merged.

<table> <thead> <tr> <th style="color: lightgreen" colspan=2><strong>Help</strong></th> </tr> </thead> <tbody> <tr> <td style="color: LightCoral">Versions 6.x.x &#8594;</td> <td><a href="https://github.com/ragardner/tksheet/wiki/Version-6" target="_blank">Documentation</a></td> </tr> <tr> <td style="color: lightgreen">Versions 7.x.x &#8594;</td> <td><a href="https://ragardner.github.io/tksheet/DOCUMENTATION.html" target="_blank">Documentation</a></td> </tr> <tr> <td align="right" colspan="2"><a href="https://github.com/ragardner/tksheet/blob/master/docs/CHANGELOG.md" target="_blank">Changelog</a></td> </tr> <tr> <td align="right" colspan="2"><a href="https://github.com/ragardner/tksheet/wiki/Version-7#issues" target="_blank">Issues</a></td> </tr> <tr> <td align="right" colspan="2"><a href="https://github.com/ragardner/tksheet/wiki/Version-7#contributions-and-special-thanks" target="_blank">Contributions and Thanks</a></td> </tr> </tbody> </table>

Features

Note that due to the limitations of the Tkinter Canvas right-to-left (RTL) languages are not supported.

"""
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

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.

Related Skills

View on GitHub
GitHub Stars500
CategoryDevelopment
Updated2d ago
Forks60

Languages

Python

Security Score

85/100

Audited on Mar 24, 2026

No findings