tksheet 7.4.14__tar.gz → 7.4.15__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.4.14/tksheet.egg-info → tksheet-7.4.15}/PKG-INFO +3 -2
  2. {tksheet-7.4.14 → tksheet-7.4.15}/pyproject.toml +1 -1
  3. {tksheet-7.4.14 → tksheet-7.4.15}/tksheet/__init__.py +1 -1
  4. {tksheet-7.4.14 → tksheet-7.4.15}/tksheet/main_table.py +9 -9
  5. {tksheet-7.4.14 → tksheet-7.4.15/tksheet.egg-info}/PKG-INFO +3 -2
  6. {tksheet-7.4.14 → tksheet-7.4.15}/LICENSE.txt +0 -0
  7. {tksheet-7.4.14 → tksheet-7.4.15}/README.md +0 -0
  8. {tksheet-7.4.14 → tksheet-7.4.15}/setup.cfg +0 -0
  9. {tksheet-7.4.14 → tksheet-7.4.15}/tksheet/colors.py +0 -0
  10. {tksheet-7.4.14 → tksheet-7.4.15}/tksheet/column_headers.py +0 -0
  11. {tksheet-7.4.14 → tksheet-7.4.15}/tksheet/constants.py +0 -0
  12. {tksheet-7.4.14 → tksheet-7.4.15}/tksheet/find_window.py +0 -0
  13. {tksheet-7.4.14 → tksheet-7.4.15}/tksheet/formatters.py +0 -0
  14. {tksheet-7.4.14 → tksheet-7.4.15}/tksheet/functions.py +0 -0
  15. {tksheet-7.4.14 → tksheet-7.4.15}/tksheet/other_classes.py +0 -0
  16. {tksheet-7.4.14 → tksheet-7.4.15}/tksheet/row_index.py +0 -0
  17. {tksheet-7.4.14 → tksheet-7.4.15}/tksheet/sheet.py +0 -0
  18. {tksheet-7.4.14 → tksheet-7.4.15}/tksheet/sheet_options.py +0 -0
  19. {tksheet-7.4.14 → tksheet-7.4.15}/tksheet/sorting.py +0 -0
  20. {tksheet-7.4.14 → tksheet-7.4.15}/tksheet/text_editor.py +0 -0
  21. {tksheet-7.4.14 → tksheet-7.4.15}/tksheet/themes.py +0 -0
  22. {tksheet-7.4.14 → tksheet-7.4.15}/tksheet/tksheet_types.py +0 -0
  23. {tksheet-7.4.14 → tksheet-7.4.15}/tksheet/top_left_rectangle.py +0 -0
  24. {tksheet-7.4.14 → tksheet-7.4.15}/tksheet.egg-info/SOURCES.txt +0 -0
  25. {tksheet-7.4.14 → tksheet-7.4.15}/tksheet.egg-info/dependency_links.txt +0 -0
  26. {tksheet-7.4.14 → tksheet-7.4.15}/tksheet.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: tksheet
3
- Version: 7.4.14
3
+ Version: 7.4.15
4
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
@@ -42,6 +42,7 @@ Classifier: Programming Language :: Python :: 3.13
42
42
  Requires-Python: >=3.8
43
43
  Description-Content-Type: text/markdown
44
44
  License-File: LICENSE.txt
45
+ Dynamic: license-file
45
46
 
46
47
  <p align="center" width="100%">
47
48
  <img width="45%" src="https://github.com/user-attachments/assets/4afc1783-6461-4b98-93cb-b2a2a7f35169" alt="tksheet table">
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
6
6
  name = "tksheet"
7
7
  description = "Tkinter table / sheet and treeview widget"
8
8
  readme = "README.md"
9
- version = "7.4.14"
9
+ version = "7.4.15"
10
10
  authors = [{ name = "ragardner", email = "github@ragardner.simplelogin.com" }]
11
11
  requires-python = ">=3.8"
12
12
  license = {file = "LICENSE.txt"}
@@ -4,7 +4,7 @@
4
4
  tksheet - A Python tkinter table widget
5
5
  """
6
6
 
7
- __version__ = "7.4.14"
7
+ __version__ = "7.4.15"
8
8
 
9
9
  from .colors import (
10
10
  color_map,
@@ -1212,16 +1212,16 @@ class MainTable(tk.Canvas):
1212
1212
  lastbox_numrows = lastbox_r2 - lastbox_r1
1213
1213
  lastbox_numcols = lastbox_c2 - lastbox_c1
1214
1214
  if lastbox_numrows > new_data_numrows and not lastbox_numrows % new_data_numrows:
1215
- nd = []
1216
- for _ in range(int(lastbox_numrows / new_data_numrows)):
1217
- nd.extend(r.copy() for r in data)
1218
- data.extend(nd)
1219
- new_data_numrows *= int(lastbox_numrows / new_data_numrows)
1215
+ repeat_num = int(lastbox_numrows / new_data_numrows)
1216
+ data.extend(chain.from_iterable([r.copy() for r in data] for _ in range(repeat_num - 1)))
1217
+ new_data_numrows *= repeat_num
1218
+
1220
1219
  if lastbox_numcols > new_data_numcols and not lastbox_numcols % new_data_numcols:
1221
- for rn, r in enumerate(data):
1222
- for _ in range(int(lastbox_numcols / new_data_numcols)):
1223
- data[rn].extend(r.copy())
1224
- new_data_numcols *= int(lastbox_numcols / new_data_numcols)
1220
+ repeat_num = int(lastbox_numcols / new_data_numcols)
1221
+ for rn, row in enumerate(data):
1222
+ copies = [row.copy() for _ in range(repeat_num - 1)]
1223
+ data[rn].extend(chain.from_iterable(copies))
1224
+ new_data_numcols *= repeat_num
1225
1225
  added_rows = 0
1226
1226
  added_cols = 0
1227
1227
  total_data_cols = None
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: tksheet
3
- Version: 7.4.14
3
+ Version: 7.4.15
4
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
@@ -42,6 +42,7 @@ Classifier: Programming Language :: Python :: 3.13
42
42
  Requires-Python: >=3.8
43
43
  Description-Content-Type: text/markdown
44
44
  License-File: LICENSE.txt
45
+ Dynamic: license-file
45
46
 
46
47
  <p align="center" width="100%">
47
48
  <img width="45%" src="https://github.com/user-attachments/assets/4afc1783-6461-4b98-93cb-b2a2a7f35169" alt="tksheet table">
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes