tksheet 7.3.4__tar.gz → 7.4.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. {tksheet-7.3.4/tksheet.egg-info → tksheet-7.4.1}/PKG-INFO +13 -16
  2. {tksheet-7.3.4 → tksheet-7.4.1}/README.md +10 -13
  3. {tksheet-7.3.4 → tksheet-7.4.1}/pyproject.toml +3 -3
  4. {tksheet-7.3.4 → tksheet-7.4.1}/tksheet/__init__.py +11 -11
  5. {tksheet-7.3.4 → tksheet-7.4.1}/tksheet/column_headers.py +328 -239
  6. {tksheet-7.3.4 → tksheet-7.4.1}/tksheet/constants.py +13 -0
  7. {tksheet-7.3.4 → tksheet-7.4.1}/tksheet/functions.py +194 -11
  8. {tksheet-7.3.4 → tksheet-7.4.1}/tksheet/main_table.py +957 -583
  9. {tksheet-7.3.4 → tksheet-7.4.1}/tksheet/other_classes.py +12 -8
  10. {tksheet-7.3.4 → tksheet-7.4.1}/tksheet/row_index.py +830 -259
  11. {tksheet-7.3.4 → tksheet-7.4.1}/tksheet/sheet.py +465 -589
  12. {tksheet-7.3.4 → tksheet-7.4.1}/tksheet/sheet_options.py +44 -1
  13. tksheet-7.4.1/tksheet/sorting.py +287 -0
  14. {tksheet-7.3.4 → tksheet-7.4.1}/tksheet/text_editor.py +2 -6
  15. tksheet-7.3.4/tksheet/types.py → tksheet-7.4.1/tksheet/tksheet_types.py +10 -1
  16. {tksheet-7.3.4 → tksheet-7.4.1/tksheet.egg-info}/PKG-INFO +13 -16
  17. {tksheet-7.3.4 → tksheet-7.4.1}/tksheet.egg-info/SOURCES.txt +2 -1
  18. {tksheet-7.3.4 → tksheet-7.4.1}/LICENSE.txt +0 -0
  19. {tksheet-7.3.4 → tksheet-7.4.1}/setup.cfg +0 -0
  20. {tksheet-7.3.4 → tksheet-7.4.1}/tksheet/colors.py +0 -0
  21. {tksheet-7.3.4 → tksheet-7.4.1}/tksheet/find_window.py +0 -0
  22. {tksheet-7.3.4 → tksheet-7.4.1}/tksheet/formatters.py +0 -0
  23. {tksheet-7.3.4 → tksheet-7.4.1}/tksheet/themes.py +0 -0
  24. {tksheet-7.3.4 → tksheet-7.4.1}/tksheet/top_left_rectangle.py +0 -0
  25. {tksheet-7.3.4 → tksheet-7.4.1}/tksheet.egg-info/dependency_links.txt +0 -0
  26. {tksheet-7.3.4 → tksheet-7.4.1}/tksheet.egg-info/top_level.txt +0 -0
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: tksheet
3
- Version: 7.3.4
4
- Summary: Tkinter table / sheet widget
3
+ Version: 7.4.1
4
+ Summary: Tkinter table / sheet and treeview widget
5
5
  Author-email: ragardner <github@ragardner.simplelogin.com>
6
6
  License: Copyright (c) 2019 ragardner and open source contributors
7
7
 
@@ -26,7 +26,7 @@ License: Copyright (c) 2019 ragardner and open source contributors
26
26
  Project-URL: Homepage, https://github.com/ragardner/tksheet
27
27
  Project-URL: Bug Reports, https://github.com/ragardner/tksheet/issues
28
28
  Project-URL: Funding, https://github.com/ragardner
29
- Keywords: tkinter,table,widget,sheet,grid,tk
29
+ Keywords: tkinter,table,widget,tree,treeview,sheet,grid,tk
30
30
  Classifier: Development Status :: 5 - Production/Stable
31
31
  Classifier: Intended Audience :: Developers
32
32
  Classifier: Topic :: Software Development :: Libraries
@@ -46,7 +46,7 @@ License-File: LICENSE.txt
46
46
  <img width="45%"src="https://github.com/user-attachments/assets/08e77e89-00ea-4c52-9222-9bd421284360" alt="tksheet treeview">
47
47
  </p>
48
48
 
49
- # <div align="center">tksheet - python tkinter table widget</div>
49
+ # <div align="center">tksheet - python tkinter table + treeview widget</div>
50
50
 
51
51
  [![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)
52
52
 
@@ -82,33 +82,23 @@ License-File: LICENSE.txt
82
82
  </tbody>
83
83
  </table>
84
84
 
85
- 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).
86
-
87
- ## **Changes for versions `7`+:**
88
-
89
- - **ALL** `extra_bindings()` event objects have changed, information [here](https://github.com/ragardner/tksheet/wiki/Version-7#bind-specific-table-functionality).
90
- - 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.
91
- - `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).
92
- - Only Python versions >= `3.8` are supported.
93
- - `tksheet` file names have been changed.
94
- - Many other smaller changes, see the [changelog](https://github.com/ragardner/tksheet/blob/master/docs/CHANGELOG.md) for more information.
95
-
96
85
  ## **Features**
97
86
 
98
87
  - Smoothly display and modify tabular data
99
88
  - [Edit cells directly](https://github.com/ragardner/tksheet/wiki/Version-7#table-functionality-and-bindings)
100
89
  - 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
101
90
  - [Drag and drop columns and rows](https://github.com/ragardner/tksheet/wiki/Version-7#table-functionality-and-bindings)
91
+ - [Editable Treeview mode](https://github.com/ragardner/tksheet/wiki/Version-7#treeview-mode) with working drag and drop, undo, etc.
102
92
  - Multiple line header and index cells
103
93
  - [Expand row heights and column widths](https://github.com/ragardner/tksheet/wiki/Version-7#table-functionality-and-bindings)
104
94
  - [Change fonts and font size (not for individual cells)](https://github.com/ragardner/tksheet/wiki/Version-7#text-font-and-alignment)
105
95
  - [Change any colors in the sheet](https://github.com/ragardner/tksheet/wiki/Version-7#sheet-appearance)
106
- - [Treeview mode](https://github.com/ragardner/tksheet/wiki/Version-7#treeview-mode)
107
96
  - [Dropdown boxes](https://github.com/ragardner/tksheet/wiki/Version-7#dropdown-boxes)
108
97
  - [Check boxes](https://github.com/ragardner/tksheet/wiki/Version-7#check-boxes)
109
98
  - [Progress bars](https://github.com/ragardner/tksheet/wiki/Version-7#progress-bars)
110
99
  - [Hide rows and/or columns](https://github.com/ragardner/tksheet/wiki/Version-7#example-header-dropdown-boxes-and-row-filtering)
111
100
  - [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)
101
+ - [In-built natural sorting](https://github.com/ragardner/tksheet/wiki/Version-7#sorting-the-table)
112
102
  - [Optional built-in find window](https://github.com/ragardner/tksheet/wiki/Version-7#table-functionality-and-bindings)
113
103
 
114
104
  ```python
@@ -140,4 +130,11 @@ sheet.delete_columns(columns=[0, 3], undo=True)
140
130
 
141
131
  ![tksheet treeview](https://github.com/user-attachments/assets/159ab987-7612-4db7-98de-1f30c9680247)
142
132
 
133
+ ## **Changes for versions `7`+:**
143
134
 
135
+ - **ALL** `extra_bindings()` event objects have changed, information [here](https://github.com/ragardner/tksheet/wiki/Version-7#bind-specific-table-functionality).
136
+ - 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.
137
+ - `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).
138
+ - Only Python versions >= `3.8` are supported.
139
+ - `tksheet` file names have been changed.
140
+ - Many other smaller changes, see the [changelog](https://github.com/ragardner/tksheet/blob/master/docs/CHANGELOG.md) for more information.
@@ -3,7 +3,7 @@
3
3
  <img width="45%"src="https://github.com/user-attachments/assets/08e77e89-00ea-4c52-9222-9bd421284360" alt="tksheet treeview">
4
4
  </p>
5
5
 
6
- # <div align="center">tksheet - python tkinter table widget</div>
6
+ # <div align="center">tksheet - python tkinter table + treeview widget</div>
7
7
 
8
8
  [![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)
9
9
 
@@ -39,33 +39,23 @@
39
39
  </tbody>
40
40
  </table>
41
41
 
42
- 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).
43
-
44
- ## **Changes for versions `7`+:**
45
-
46
- - **ALL** `extra_bindings()` event objects have changed, information [here](https://github.com/ragardner/tksheet/wiki/Version-7#bind-specific-table-functionality).
47
- - 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.
48
- - `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).
49
- - Only Python versions >= `3.8` are supported.
50
- - `tksheet` file names have been changed.
51
- - Many other smaller changes, see the [changelog](https://github.com/ragardner/tksheet/blob/master/docs/CHANGELOG.md) for more information.
52
-
53
42
  ## **Features**
54
43
 
55
44
  - Smoothly display and modify tabular data
56
45
  - [Edit cells directly](https://github.com/ragardner/tksheet/wiki/Version-7#table-functionality-and-bindings)
57
46
  - 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
58
47
  - [Drag and drop columns and rows](https://github.com/ragardner/tksheet/wiki/Version-7#table-functionality-and-bindings)
48
+ - [Editable Treeview mode](https://github.com/ragardner/tksheet/wiki/Version-7#treeview-mode) with working drag and drop, undo, etc.
59
49
  - Multiple line header and index cells
60
50
  - [Expand row heights and column widths](https://github.com/ragardner/tksheet/wiki/Version-7#table-functionality-and-bindings)
61
51
  - [Change fonts and font size (not for individual cells)](https://github.com/ragardner/tksheet/wiki/Version-7#text-font-and-alignment)
62
52
  - [Change any colors in the sheet](https://github.com/ragardner/tksheet/wiki/Version-7#sheet-appearance)
63
- - [Treeview mode](https://github.com/ragardner/tksheet/wiki/Version-7#treeview-mode)
64
53
  - [Dropdown boxes](https://github.com/ragardner/tksheet/wiki/Version-7#dropdown-boxes)
65
54
  - [Check boxes](https://github.com/ragardner/tksheet/wiki/Version-7#check-boxes)
66
55
  - [Progress bars](https://github.com/ragardner/tksheet/wiki/Version-7#progress-bars)
67
56
  - [Hide rows and/or columns](https://github.com/ragardner/tksheet/wiki/Version-7#example-header-dropdown-boxes-and-row-filtering)
68
57
  - [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)
58
+ - [In-built natural sorting](https://github.com/ragardner/tksheet/wiki/Version-7#sorting-the-table)
69
59
  - [Optional built-in find window](https://github.com/ragardner/tksheet/wiki/Version-7#table-functionality-and-bindings)
70
60
 
71
61
  ```python
@@ -97,4 +87,11 @@ sheet.delete_columns(columns=[0, 3], undo=True)
97
87
 
98
88
  ![tksheet treeview](https://github.com/user-attachments/assets/159ab987-7612-4db7-98de-1f30c9680247)
99
89
 
90
+ ## **Changes for versions `7`+:**
100
91
 
92
+ - **ALL** `extra_bindings()` event objects have changed, information [here](https://github.com/ragardner/tksheet/wiki/Version-7#bind-specific-table-functionality).
93
+ - 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.
94
+ - `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).
95
+ - Only Python versions >= `3.8` are supported.
96
+ - `tksheet` file names have been changed.
97
+ - Many other smaller changes, see the [changelog](https://github.com/ragardner/tksheet/blob/master/docs/CHANGELOG.md) for more information.
@@ -4,13 +4,13 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "tksheet"
7
- description = "Tkinter table / sheet widget"
7
+ description = "Tkinter table / sheet and treeview widget"
8
8
  readme = "README.md"
9
- version = "7.3.4"
9
+ version = "7.4.1"
10
10
  authors = [{ name = "ragardner", email = "github@ragardner.simplelogin.com" }]
11
11
  requires-python = ">=3.8"
12
12
  license = {file = "LICENSE.txt"}
13
- keywords = ["tkinter", "table", "widget", "sheet", "grid", "tk"]
13
+ keywords = ["tkinter", "table", "widget", "tree", "treeview", "sheet", "grid", "tk"]
14
14
  classifiers = [
15
15
  "Development Status :: 5 - Production/Stable",
16
16
  "Intended Audience :: Developers",
@@ -4,12 +4,22 @@
4
4
  tksheet - A Python tkinter table widget
5
5
  """
6
6
 
7
- __version__ = "7.3.4"
7
+ __version__ = "7.4.1"
8
8
 
9
9
  from .colors import (
10
10
  color_map,
11
11
  )
12
12
  from .column_headers import ColumnHeaders
13
+ from .constants import (
14
+ USER_OS,
15
+ ctrl_key,
16
+ emitted_events,
17
+ falsy,
18
+ nonelike,
19
+ rc_binding,
20
+ symbols_set,
21
+ truthy,
22
+ )
13
23
  from .formatters import (
14
24
  Formatter,
15
25
  alt_percentage_to_str,
@@ -96,13 +106,3 @@ from .themes import (
96
106
  theme_light_green,
97
107
  )
98
108
  from .top_left_rectangle import TopLeftRectangle
99
- from .constants import (
100
- USER_OS,
101
- ctrl_key,
102
- emitted_events,
103
- falsy,
104
- nonelike,
105
- rc_binding,
106
- symbols_set,
107
- truthy,
108
- )