tksheet 7.4.14__py3-none-any.whl → 7.4.15__py3-none-any.whl

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.
tksheet/__init__.py CHANGED
@@ -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,
tksheet/main_table.py CHANGED
@@ -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">
@@ -1,11 +1,11 @@
1
- tksheet/__init__.py,sha256=3PPVPpSjy9UW907gQGNjDApgWzFv0DikuRVnuAo3nAc,2327
1
+ tksheet/__init__.py,sha256=0A8G1IW7h2nBpuNofGOgTB_Gs_vs0JIzUitpZrUejDY,2327
2
2
  tksheet/colors.py,sha256=dHhmdFuQDlwohDHsAfT9VdrKoSl_R33L72a3HCin5zo,51591
3
3
  tksheet/column_headers.py,sha256=POoLTtR8qvrRYJl1c7WMc6UiDxfoNxhLUC2ikcEzt1M,103446
4
4
  tksheet/constants.py,sha256=aiDvUSaPtl_TSNtRRJ_p87c9iTBz9ksMd5IsSXzz4Hk,13316
5
5
  tksheet/find_window.py,sha256=w6S0FZFLRNHiM57Oq97avALT_PctIBPegSxnkNUwkwk,19982
6
6
  tksheet/formatters.py,sha256=DGcRiMsDJnySNpQcjfiX84oJ7TmOSMdU6u9injIhA4g,10095
7
7
  tksheet/functions.py,sha256=qks2dLqBE9GMAuEXaA4qiU-rrL-dzmz4-tkmkp6_ETk,53037
8
- tksheet/main_table.py,sha256=dNpljN59pWIQ_QPBUKuZjxJMZw723neMQFkfSAP1sJI,366079
8
+ tksheet/main_table.py,sha256=oNrbcR31imVI9k4skPcdGDhae1vr4y-mx2w-JqdxGIA,366096
9
9
  tksheet/other_classes.py,sha256=B2SrUAviztDUOPGoWkcu-AixqAaKwItshoVZPGe1_Tc,16662
10
10
  tksheet/row_index.py,sha256=a0W78zqZIXVxfzyF5yYfXu1iUXnnDcK0ESodLl6joiA,141720
11
11
  tksheet/sheet.py,sha256=nQES3tqopDmmyL7j7YKDjZRdfVVhmgzQ-2srII6COgE,269766
@@ -15,8 +15,8 @@ tksheet/text_editor.py,sha256=rU8Fz0-ltkM63W9io2DoZJPyzUGzCc9Z0qBtc4D1H40,7404
15
15
  tksheet/themes.py,sha256=AoNAxibnQi04MN0Zpbn9-kyDnkiiV8TDNWP9FYjpuf0,18473
16
16
  tksheet/tksheet_types.py,sha256=1MjXR34EmvP1KfHlLTvKKVnf0VMz_LU_WOM2q4o5hfI,4598
17
17
  tksheet/top_left_rectangle.py,sha256=M52IrPIeMoYE3jSpooZmqw_0W5Fz_R-Yu1ZqA685EZ8,8557
18
- tksheet-7.4.14.dist-info/LICENSE.txt,sha256=ndbcCPe9SlHfweE_W2RAueWUe2k7yudyxYLq6WjFdn4,1101
19
- tksheet-7.4.14.dist-info/METADATA,sha256=F1Yoinb1DWdw_m765tlha6ae7vnxGbhw-7wDlE325cw,8095
20
- tksheet-7.4.14.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
21
- tksheet-7.4.14.dist-info/top_level.txt,sha256=my61PXCcck_HHAc9cq3NAlyAr3A3FXxCy9gptEOaCN8,8
22
- tksheet-7.4.14.dist-info/RECORD,,
18
+ tksheet-7.4.15.dist-info/licenses/LICENSE.txt,sha256=ndbcCPe9SlHfweE_W2RAueWUe2k7yudyxYLq6WjFdn4,1101
19
+ tksheet-7.4.15.dist-info/METADATA,sha256=5lM0czuma-wovKNPc_PUgkISbpY2Kve1hDoOqpjE7MM,8117
20
+ tksheet-7.4.15.dist-info/WHEEL,sha256=L0N565qmK-3nM2eBoMNFszYJ_MTx03_tQ0CQu1bHLYo,91
21
+ tksheet-7.4.15.dist-info/top_level.txt,sha256=my61PXCcck_HHAc9cq3NAlyAr3A3FXxCy9gptEOaCN8,8
22
+ tksheet-7.4.15.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (76.0.0)
2
+ Generator: setuptools (78.0.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5