tksheet


Nametksheet JSON
Version 7.2.23 PyPI version JSON
download
home_pageNone
SummaryTkinter table / sheet widget
upload_time2024-11-20 19:04:23
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseCopyright (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 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="33%" src="https://github.com/ragardner/tksheet/assets/26602401/4124c3ce-cf62-4925-9158-c5bdf712765b">
</p>

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

[![PyPI version shields.io](https://img.shields.io/pypi/v/tksheet.svg)](https://pypi.python.org/pypi/tksheet/) ![python](https://img.shields.io/badge/python-3.8|3.9|3.10|3.11|3.12|3.13-blue) [![License: MIT](https://img.shields.io/badge/License-MIT%20-blue.svg)](https://github.com/ragardner/tksheet/blob/master/LICENSE.txt)

[![GitHub Release Date](https://img.shields.io/github/release-date-pre/ragardner/tksheet.svg)](https://github.com/ragardner/tksheet/releases) [![Downloads](https://img.shields.io/pypi/dm/tksheet.svg)](https://pypi.org/project/tksheet/)

|    **Help**       |                                                                  |
|-------------------|------------------------------------------------------------------|
| Versions 6.x.x -> | [Documentation Wiki](https://github.com/ragardner/tksheet/wiki/Version-6) | |
| Versions 7.x.x -> | [Documentation Wiki](https://github.com/ragardner/tksheet/wiki/Version-7) | |
| [Changelog](https://github.com/ragardner/tksheet/blob/master/docs/CHANGELOG.md) | |
| [Questions](https://github.com/ragardner/tksheet/wiki/Version-7#asking-questions) | |
| [Issues](https://github.com/ragardner/tksheet/wiki/Version-7#issues) | |
| [Suggestions](https://github.com/ragardner/tksheet/wiki/Version-7#enhancements-or-suggestions) | |

This library is maintained with the help of **[others](https://github.com/ragardner/tksheet/graphs/contributors)**. If you would like to contribute please read this [help section](https://github.com/ragardner/tksheet/wiki/Version-7#contributing).

## **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.

## **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](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
- 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](https://github.com/ragardner/tksheet/wiki/Version-7#treeview-mode)
- [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

```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**

![tksheet light blue theme](https://github.com/user-attachments/assets/f40317d7-8b7f-43c5-9217-a77168b068ed)

### **dark theme**

![tksheet dark theme](https://github.com/user-attachments/assets/288453d6-5ac1-4d45-827f-45b24a3d05ed)

### **treeview mode**

![tksheet treeview](https://github.com/user-attachments/assets/159ab987-7612-4db7-98de-1f30c9680247)




            

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, sheet, grid, tk",
    "author": null,
    "author_email": "ragardner <github@ragardner.simplelogin.com>",
    "download_url": "https://files.pythonhosted.org/packages/63/92/36828b839c3cc794d208cebdd6977952e70aa064db768ad7f0e6bdb5ea2a/tksheet-7.2.23.tar.gz",
    "platform": null,
    "description": "<p align=\"center\" width=\"100%\">\n    <img width=\"33%\" src=\"https://github.com/ragardner/tksheet/assets/26602401/4124c3ce-cf62-4925-9158-c5bdf712765b\">\n</p>\n\n# <div align=\"center\">tksheet - python tkinter table widget</div>\n\n[![PyPI version shields.io](https://img.shields.io/pypi/v/tksheet.svg)](https://pypi.python.org/pypi/tksheet/) ![python](https://img.shields.io/badge/python-3.8|3.9|3.10|3.11|3.12|3.13-blue) [![License: MIT](https://img.shields.io/badge/License-MIT%20-blue.svg)](https://github.com/ragardner/tksheet/blob/master/LICENSE.txt)\n\n[![GitHub Release Date](https://img.shields.io/github/release-date-pre/ragardner/tksheet.svg)](https://github.com/ragardner/tksheet/releases) [![Downloads](https://img.shields.io/pypi/dm/tksheet.svg)](https://pypi.org/project/tksheet/)\n\n|    **Help**       |                                                                  |\n|-------------------|------------------------------------------------------------------|\n| Versions 6.x.x -> | [Documentation Wiki](https://github.com/ragardner/tksheet/wiki/Version-6) | |\n| Versions 7.x.x -> | [Documentation Wiki](https://github.com/ragardner/tksheet/wiki/Version-7) | |\n| [Changelog](https://github.com/ragardner/tksheet/blob/master/docs/CHANGELOG.md) | |\n| [Questions](https://github.com/ragardner/tksheet/wiki/Version-7#asking-questions) | |\n| [Issues](https://github.com/ragardner/tksheet/wiki/Version-7#issues) | |\n| [Suggestions](https://github.com/ragardner/tksheet/wiki/Version-7#enhancements-or-suggestions) | |\n\nThis library is maintained with the help of **[others](https://github.com/ragardner/tksheet/graphs/contributors)**. If you would like to contribute please read this [help section](https://github.com/ragardner/tksheet/wiki/Version-7#contributing).\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\n## **Features**\n\n- Display and modify tabular data\n- Stores its display data as a Python list of lists, sublists being rows\n- Runs smoothly even with millions of rows/columns\n- Edit cells directly\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\n- Multiple line header and index cells\n- Expand row heights and column widths\n- Change fonts and font size (not for individual cells)\n- Change any colors in the sheet\n- Dropdowns, check boxes, progress bars\n- [Treeview mode](https://github.com/ragardner/tksheet/wiki/Version-7#treeview-mode)\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\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![tksheet light blue theme](https://github.com/user-attachments/assets/f40317d7-8b7f-43c5-9217-a77168b068ed)\n\n### **dark theme**\n\n![tksheet dark theme](https://github.com/user-attachments/assets/288453d6-5ac1-4d45-827f-45b24a3d05ed)\n\n### **treeview mode**\n\n![tksheet treeview](https://github.com/user-attachments/assets/159ab987-7612-4db7-98de-1f30c9680247)\n\n\n\n",
    "bugtrack_url": null,
    "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. ",
    "summary": "Tkinter table / sheet widget",
    "version": "7.2.23",
    "project_urls": {
        "Bug Reports": "https://github.com/ragardner/tksheet/issues",
        "Funding": "https://github.com/ragardner",
        "Homepage": "https://github.com/ragardner/tksheet"
    },
    "split_keywords": [
        "tkinter",
        " table",
        " widget",
        " sheet",
        " grid",
        " tk"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "317a85e8d970e35e76c375f16b8568dcf276aafbb985b96c2ff5d60cd69e5cae",
                "md5": "3ab6f819ef1cc1fb7c164eb9e831e193",
                "sha256": "6d65fdd71ceec44a33bddb62850f5905430ffb1dd5289e69f859e0d5ed7fd09f"
            },
            "downloads": -1,
            "filename": "tksheet-7.2.23-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3ab6f819ef1cc1fb7c164eb9e831e193",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 157853,
            "upload_time": "2024-11-20T19:04:22",
            "upload_time_iso_8601": "2024-11-20T19:04:22.041047Z",
            "url": "https://files.pythonhosted.org/packages/31/7a/85e8d970e35e76c375f16b8568dcf276aafbb985b96c2ff5d60cd69e5cae/tksheet-7.2.23-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "639236828b839c3cc794d208cebdd6977952e70aa064db768ad7f0e6bdb5ea2a",
                "md5": "551aa4d30264c1e90b16addbf8414502",
                "sha256": "4f4f7c01105750cc101117001943275d365c4752dbfd926e62efcf314e3e1fb3"
            },
            "downloads": -1,
            "filename": "tksheet-7.2.23.tar.gz",
            "has_sig": false,
            "md5_digest": "551aa4d30264c1e90b16addbf8414502",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 154499,
            "upload_time": "2024-11-20T19:04:23",
            "upload_time_iso_8601": "2024-11-20T19:04:23.969211Z",
            "url": "https://files.pythonhosted.org/packages/63/92/36828b839c3cc794d208cebdd6977952e70aa064db768ad7f0e6bdb5ea2a/tksheet-7.2.23.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-20 19:04:23",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ragardner",
    "github_project": "tksheet",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "tksheet"
}
        
Elapsed time: 0.47758s