Name | tksheet JSON |
Version |
7.4.5
JSON |
| download |
home_page | None |
Summary | Tkinter table / sheet and treeview widget |
upload_time | 2025-02-25 19:32:37 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | Copyright (c) 2019 ragardner and open source contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
|
keywords |
tkinter
table
widget
tree
treeview
sheet
grid
tk
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
<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>
[](https://pypi.python.org/pypi/tksheet/)  [](https://github.com/ragardner/tksheet/blob/master/LICENSE.txt)
[](https://github.com/ragardner/tksheet/releases) [](https://pypi.org/project/tksheet/)
<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 →</td>
<td><a href="https://github.com/ragardner/tksheet/wiki/Version-6">Documentation Wiki</a></td>
</tr>
<tr>
<td style="color: lightgreen">Versions 7.x.x →</td>
<td><a href="https://github.com/ragardner/tksheet/wiki/Version-7">Documentation Wiki</a></td>
</tr>
<tr>
<td align="right" colspan="2"><a href="https://github.com/ragardner/tksheet/blob/master/docs/CHANGELOG.md">Changelog</a></td>
</tr>
<tr>
<td align="right" colspan="2"><a href="https://github.com/ragardner/tksheet/wiki/Version-7#asking-questions">Questions</a></td>
</tr>
<tr>
<td align="right" colspan="2"><a href="https://github.com/ragardner/tksheet/wiki/Version-7#issues">Issues</a></td>
</tr>
<tr>
<td align="right" colspan="2"><a href="https://github.com/ragardner/tksheet/wiki/Version-7#enhancements-or-suggestions">Suggestions and Contributors</a></td>
</tr>
</tbody>
</table>
## **Features**
- Smoothly display and modify tabular data
- [Edit cells directly](https://github.com/ragardner/tksheet/wiki/Version-7#table-functionality-and-bindings)
- Cell values can potentially be [any class](https://github.com/ragardner/tksheet/wiki/Version-7#data-formatting), the default is any class with a `__str__` method
- [Drag and drop columns and rows](https://github.com/ragardner/tksheet/wiki/Version-7#table-functionality-and-bindings)
- [Editable Treeview mode](https://github.com/ragardner/tksheet/wiki/Version-7#treeview-mode) with working drag and drop, undo, etc.
- Multiple line header and index cells
- [Expand row heights and column widths](https://github.com/ragardner/tksheet/wiki/Version-7#table-functionality-and-bindings)
- [Change fonts and font size (not for individual cells)](https://github.com/ragardner/tksheet/wiki/Version-7#text-font-and-alignment)
- [Change any colors in the sheet](https://github.com/ragardner/tksheet/wiki/Version-7#sheet-appearance)
- [Dropdown boxes](https://github.com/ragardner/tksheet/wiki/Version-7#dropdown-boxes)
- [Check boxes](https://github.com/ragardner/tksheet/wiki/Version-7#check-boxes)
- [Progress bars](https://github.com/ragardner/tksheet/wiki/Version-7#progress-bars)
- [Hide rows and/or columns](https://github.com/ragardner/tksheet/wiki/Version-7#example-header-dropdown-boxes-and-row-filtering)
- [Left `"w"`, Center `"center"` or Right `"e"` text alignment for any cell/row/column](https://github.com/ragardner/tksheet/wiki/Version-7#text-font-and-alignment)
- [In-built natural sorting](https://github.com/ragardner/tksheet/wiki/Version-7#sorting-the-table)
- [Optional built-in find window](https://github.com/ragardner/tksheet/wiki/Version-7#table-functionality-and-bindings)
Note that due to the limitations of the Tkinter Canvas right-to-left (RTL) languages are not supported.
```python
"""
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](https://github.com/ragardner/tksheet/wiki/Version-7#bind-specific-table-functionality).
- 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](https://github.com/ragardner/tksheet/wiki/Version-7#validate-user-cell-edits) instead.
- `edit_cell_validation` has been removed and replaced with the function `edit_validation()`, information [here](https://github.com/ragardner/tksheet/wiki/Version-7#validate-user-cell-edits).
- Only Python versions >= `3.8` are supported.
- `tksheet` file names have been changed.
- Many other smaller changes, see the [changelog](https://github.com/ragardner/tksheet/blob/master/docs/CHANGELOG.md) for more information.
Raw data
{
"_id": null,
"home_page": null,
"name": "tksheet",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "tkinter, table, widget, tree, treeview, sheet, grid, tk",
"author": null,
"author_email": "ragardner <github@ragardner.simplelogin.com>",
"download_url": "https://files.pythonhosted.org/packages/7c/7d/c11ab0c146669ca827fff43b6685c009a0bcd8728dc7a6fc2da6cd16ef77/tksheet-7.4.5.tar.gz",
"platform": null,
"description": "<p align=\"center\" width=\"100%\">\n <img width=\"45%\" src=\"https://github.com/user-attachments/assets/4afc1783-6461-4b98-93cb-b2a2a7f35169\" alt=\"tksheet table\">\n <img width=\"45%\"src=\"https://github.com/user-attachments/assets/08e77e89-00ea-4c52-9222-9bd421284360\" alt=\"tksheet treeview\">\n</p>\n\n# <div align=\"center\">tksheet - python tkinter table + treeview widget</div>\n\n[](https://pypi.python.org/pypi/tksheet/)  [](https://github.com/ragardner/tksheet/blob/master/LICENSE.txt)\n\n[](https://github.com/ragardner/tksheet/releases) [](https://pypi.org/project/tksheet/)\n\n<table>\n <thead>\n <tr>\n <th style=\"color: lightgreen\" colspan=2><strong>Help</strong></th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td style=\"color: LightCoral\">Versions 6.x.x →</td>\n <td><a href=\"https://github.com/ragardner/tksheet/wiki/Version-6\">Documentation Wiki</a></td>\n </tr>\n <tr>\n <td style=\"color: lightgreen\">Versions 7.x.x →</td>\n <td><a href=\"https://github.com/ragardner/tksheet/wiki/Version-7\">Documentation Wiki</a></td>\n </tr>\n <tr>\n <td align=\"right\" colspan=\"2\"><a href=\"https://github.com/ragardner/tksheet/blob/master/docs/CHANGELOG.md\">Changelog</a></td>\n </tr>\n <tr>\n <td align=\"right\" colspan=\"2\"><a href=\"https://github.com/ragardner/tksheet/wiki/Version-7#asking-questions\">Questions</a></td>\n </tr>\n <tr>\n <td align=\"right\" colspan=\"2\"><a href=\"https://github.com/ragardner/tksheet/wiki/Version-7#issues\">Issues</a></td>\n </tr>\n <tr>\n <td align=\"right\" colspan=\"2\"><a href=\"https://github.com/ragardner/tksheet/wiki/Version-7#enhancements-or-suggestions\">Suggestions and Contributors</a></td>\n </tr>\n </tbody>\n</table>\n\n## **Features**\n\n- Smoothly display and modify tabular data\n- [Edit cells directly](https://github.com/ragardner/tksheet/wiki/Version-7#table-functionality-and-bindings)\n- Cell values can potentially be [any class](https://github.com/ragardner/tksheet/wiki/Version-7#data-formatting), the default is any class with a `__str__` method\n- [Drag and drop columns and rows](https://github.com/ragardner/tksheet/wiki/Version-7#table-functionality-and-bindings)\n- [Editable Treeview mode](https://github.com/ragardner/tksheet/wiki/Version-7#treeview-mode) with working drag and drop, undo, etc.\n- Multiple line header and index cells\n- [Expand row heights and column widths](https://github.com/ragardner/tksheet/wiki/Version-7#table-functionality-and-bindings)\n- [Change fonts and font size (not for individual cells)](https://github.com/ragardner/tksheet/wiki/Version-7#text-font-and-alignment)\n- [Change any colors in the sheet](https://github.com/ragardner/tksheet/wiki/Version-7#sheet-appearance)\n- [Dropdown boxes](https://github.com/ragardner/tksheet/wiki/Version-7#dropdown-boxes)\n- [Check boxes](https://github.com/ragardner/tksheet/wiki/Version-7#check-boxes)\n- [Progress bars](https://github.com/ragardner/tksheet/wiki/Version-7#progress-bars)\n- [Hide rows and/or columns](https://github.com/ragardner/tksheet/wiki/Version-7#example-header-dropdown-boxes-and-row-filtering)\n- [Left `\"w\"`, Center `\"center\"` or Right `\"e\"` text alignment for any cell/row/column](https://github.com/ragardner/tksheet/wiki/Version-7#text-font-and-alignment)\n- [In-built natural sorting](https://github.com/ragardner/tksheet/wiki/Version-7#sorting-the-table)\n- [Optional built-in find window](https://github.com/ragardner/tksheet/wiki/Version-7#table-functionality-and-bindings)\n\nNote that due to the limitations of the Tkinter Canvas right-to-left (RTL) languages are not supported.\n\n```python\n\"\"\"\nVersions 7+ have succinct and easy to read syntax:\n\"\"\"\n# set data\nsheet[\"A1\"].data = \"edited cell A1\"\n\n# get data\ncolumn_b = sheet[\"B\"].data\n\n# add 2 empty columns and add the change to undo stack\nsheet.insert_columns(columns=2, idx=4, undo=True)\n\n# delete columns 0 and 3 and add the change to undo stack\nsheet.delete_columns(columns=[0, 3], undo=True)\n```\n\n### **light blue theme**\n\n\n\n### **dark theme**\n\n\n\n### **treeview mode**\n\n\n\n## **Changes for versions `7`+:**\n\n- **ALL** `extra_bindings()` event objects have changed, information [here](https://github.com/ragardner/tksheet/wiki/Version-7#bind-specific-table-functionality).\n- 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](https://github.com/ragardner/tksheet/wiki/Version-7#validate-user-cell-edits) instead.\n- `edit_cell_validation` has been removed and replaced with the function `edit_validation()`, information [here](https://github.com/ragardner/tksheet/wiki/Version-7#validate-user-cell-edits).\n- Only Python versions >= `3.8` are supported.\n- `tksheet` file names have been changed.\n- Many other smaller changes, see the [changelog](https://github.com/ragardner/tksheet/blob/master/docs/CHANGELOG.md) for more information.\n",
"bugtrack_url": null,
"license": "Copyright (c) 2019 ragardner and open source contributors\n \n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n \n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n \n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n ",
"summary": "Tkinter table / sheet and treeview widget",
"version": "7.4.5",
"project_urls": {
"Changelog": "https://github.com/ragardner/tksheet/blob/master/docs/CHANGELOG.md",
"Documentation": "https://github.com/ragardner/tksheet/wiki/Version-7",
"Funding": "https://github.com/ragardner",
"Homepage": "https://github.com/ragardner/tksheet",
"Issues": "https://github.com/ragardner/tksheet/issues"
},
"split_keywords": [
"tkinter",
" table",
" widget",
" tree",
" treeview",
" sheet",
" grid",
" tk"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "c6123ac0e3af6ab276568eb344d9bbca0c9e01154ca0758d9bff251418cdf10c",
"md5": "d1dc63a2e5151df2742fcd03ce85b8ae",
"sha256": "c7ecbe5f49c38e34ddab451a4baefe7b27648c2bf84263b3600cc23bc99faf6f"
},
"downloads": -1,
"filename": "tksheet-7.4.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d1dc63a2e5151df2742fcd03ce85b8ae",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 175476,
"upload_time": "2025-02-25T19:32:34",
"upload_time_iso_8601": "2025-02-25T19:32:34.911072Z",
"url": "https://files.pythonhosted.org/packages/c6/12/3ac0e3af6ab276568eb344d9bbca0c9e01154ca0758d9bff251418cdf10c/tksheet-7.4.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "7c7dc11ab0c146669ca827fff43b6685c009a0bcd8728dc7a6fc2da6cd16ef77",
"md5": "ca024079714f70100fbbc398858b33af",
"sha256": "b5c83ba09eea7b68576433560753ec3bd4d55a70b863be5f39b584347762cf8d"
},
"downloads": -1,
"filename": "tksheet-7.4.5.tar.gz",
"has_sig": false,
"md5_digest": "ca024079714f70100fbbc398858b33af",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 171826,
"upload_time": "2025-02-25T19:32:37",
"upload_time_iso_8601": "2025-02-25T19:32:37.570336Z",
"url": "https://files.pythonhosted.org/packages/7c/7d/c11ab0c146669ca827fff43b6685c009a0bcd8728dc7a6fc2da6cd16ef77/tksheet-7.4.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-02-25 19:32:37",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ragardner",
"github_project": "tksheet",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "tksheet"
}