tksheet - python tkinter table + treeview widget
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.
| Help | |
|---|---|
| Versions 6.x.x → | Documentation |
| Versions 7.x.x → | Documentation |
| Changelog | |
| Issues | |
| Contributions and Thanks | |
Features
- Smoothly display and modify tabular data
- 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
- Editable Treeview mode with working drag and drop, undo, etc.
- 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
- Dropdown boxes
- Check boxes
- Progress bars
- Hide rows and/or columns
- Left
"w", Center"center"or Right"e"text alignment for any cell/row/column - In-built natural sorting
- Optional built-in find window
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
dark theme
treeview mode
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_validationhas been removed and replaced with the functionedit_validation(), information here.- Only Python versions >=
3.8are supported. tksheetfile names have been changed.- Many other smaller changes, see the changelog for more information.
Metadata
Release files for tksheet 7.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tksheet-7.6.0.tar.gz | 199.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tksheet-7.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 401.8 kB
Release files / tksheet-7.6.0.tar.gz
| Download URL | tksheet-7.6.0.tar.gz |
|---|---|
| Size | 199.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
42d0618b10184294a85489a474ae747097483dd9a47b4385ba12b1afa8648e1a
|
|
BLAKE2b-256 checksum How to use checksums |
a1284e83480a2c1d41d25fbae2b613847ead6d9499a2d7eec0000bf17aed2f30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / tksheet-7.6.0-py3-none-any.whl
| Download URL | tksheet-7.6.0-py3-none-any.whl |
|---|---|
| Size | 202.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c586d7d04f93bace45f97888b12ea97cbb48dea4f1c3b7931e89491fdf18f9bb
|
|
BLAKE2b-256 checksum How to use checksums |
51a2406016281147857d919c95a9efb6926b8ada683d2fc4de8c1fabc9d5aefa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|