Tkinter table / sheet widget
Project description
tksheet - python tkinter table widget
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 functionedit_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
- 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 green theme
dark theme
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.13.tar.gz
(150.4 kB
view details)
Built Distribution
tksheet-7.2.13-py3-none-any.whl
(153.6 kB
view details)
File details
Details for the file tksheet-7.2.13.tar.gz
.
File metadata
- Download URL: tksheet-7.2.13.tar.gz
- Upload date:
- Size: 150.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3788ef271845cb00aedae2a3b47e90ac6018b76d2e6f9a7403e67ebd04d9a257 |
|
MD5 | e90a67c74bb573ba3fbd75c0c0c6a006 |
|
BLAKE2b-256 | b2b5f1ba88498e10919b7c0adafa40384e09232f4e1701347d4876f6d45480d9 |
Provenance
File details
Details for the file tksheet-7.2.13-py3-none-any.whl
.
File metadata
- Download URL: tksheet-7.2.13-py3-none-any.whl
- Upload date:
- Size: 153.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89d4f4661efb3b7af128cc3adab45e04bdc04533f305716662fd1530ee3c5288 |
|
MD5 | 4b5dbf9e3f1b82de4bcd4d887157d296 |
|
BLAKE2b-256 | 3f957d8363057f047f692ddbb5899fae51ddb92c0de5f01c1ded56a2d1ee9183 |