tksheet 7.4.15__py3-none-any.whl → 7.4.16__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 +1 -1
- tksheet/main_table.py +11 -21
- {tksheet-7.4.15.dist-info → tksheet-7.4.16.dist-info}/METADATA +1 -1
- {tksheet-7.4.15.dist-info → tksheet-7.4.16.dist-info}/RECORD +7 -7
- {tksheet-7.4.15.dist-info → tksheet-7.4.16.dist-info}/WHEEL +1 -1
- {tksheet-7.4.15.dist-info → tksheet-7.4.16.dist-info}/licenses/LICENSE.txt +0 -0
- {tksheet-7.4.15.dist-info → tksheet-7.4.16.dist-info}/top_level.txt +0 -0
tksheet/__init__.py
CHANGED
tksheet/main_table.py
CHANGED
@@ -5072,15 +5072,12 @@ class MainTable(tk.Canvas):
|
|
5072
5072
|
self.displayed_columns = add_to_displayed(self.displayed_columns, columns)
|
5073
5073
|
cws = self.get_column_widths()
|
5074
5074
|
if column_widths and next(iter(column_widths)) > len(cws):
|
5075
|
-
|
5076
|
-
|
5075
|
+
default_width = self.PAR.ops.default_column_width
|
5076
|
+
to_add = dict.fromkeys(range(len(cws), next(iter(column_widths))), default_width)
|
5077
|
+
to_add.update(column_widths)
|
5078
|
+
column_widths = to_add
|
5077
5079
|
if not from_undo:
|
5078
|
-
self.set_col_positions(
|
5079
|
-
itr=insert_items(
|
5080
|
-
cws,
|
5081
|
-
column_widths,
|
5082
|
-
)
|
5083
|
-
)
|
5080
|
+
self.set_col_positions(insert_items(cws, column_widths))
|
5084
5081
|
# rn needed for indexing but cn insert
|
5085
5082
|
maxrn = 0
|
5086
5083
|
for cn, rowdict in columns.items():
|
@@ -5102,10 +5099,7 @@ class MainTable(tk.Canvas):
|
|
5102
5099
|
}
|
5103
5100
|
if not from_undo:
|
5104
5101
|
self.set_row_positions(
|
5105
|
-
|
5106
|
-
self.gen_row_heights(),
|
5107
|
-
repeat(default_height, maxrn + 1 - (len(self.row_positions) - 1)),
|
5108
|
-
)
|
5102
|
+
chain(self.gen_row_heights(), repeat(default_height, maxrn + 1 - (len(self.row_positions) - 1)))
|
5109
5103
|
)
|
5110
5104
|
if isinstance(self._headers, list) and header:
|
5111
5105
|
self._headers = insert_items(self._headers, header, self.CH.fix_header)
|
@@ -5249,16 +5243,12 @@ class MainTable(tk.Canvas):
|
|
5249
5243
|
row_heights = event_data["added"]["rows"]["row_heights"]
|
5250
5244
|
rhs = self.get_row_heights()
|
5251
5245
|
if row_heights and next(iter(row_heights)) > len(rhs):
|
5252
|
-
|
5253
|
-
|
5254
|
-
|
5246
|
+
default_height = self.get_default_row_height()
|
5247
|
+
to_add = dict.fromkeys(range(len(rhs), next(iter(row_heights))), default_height)
|
5248
|
+
to_add.update(row_heights)
|
5249
|
+
row_heights = to_add
|
5255
5250
|
if not from_undo:
|
5256
|
-
self.set_row_positions(
|
5257
|
-
itr=insert_items(
|
5258
|
-
rhs,
|
5259
|
-
row_heights,
|
5260
|
-
)
|
5261
|
-
)
|
5251
|
+
self.set_row_positions(insert_items(rhs, row_heights))
|
5262
5252
|
if create_selections:
|
5263
5253
|
self.deselect("all", redraw=False)
|
5264
5254
|
for boxst, boxend in consecutive_ranges(tuple(row_heights)):
|
@@ -1,11 +1,11 @@
|
|
1
|
-
tksheet/__init__.py,sha256=
|
1
|
+
tksheet/__init__.py,sha256=OLoYiKVcrBwP995Mw004bnHrKCaoq6vIlVHpsbTVAwY,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=
|
8
|
+
tksheet/main_table.py,sha256=uZd1XM-lQftwlRABYXxXc5Le08I5uawmvcmI5fRJ5G0,365975
|
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.
|
19
|
-
tksheet-7.4.
|
20
|
-
tksheet-7.4.
|
21
|
-
tksheet-7.4.
|
22
|
-
tksheet-7.4.
|
18
|
+
tksheet-7.4.16.dist-info/licenses/LICENSE.txt,sha256=ndbcCPe9SlHfweE_W2RAueWUe2k7yudyxYLq6WjFdn4,1101
|
19
|
+
tksheet-7.4.16.dist-info/METADATA,sha256=X_Ym1wjZ0WGE2o8VxYogW88btlFhPJCtEhHMVEiajjY,8117
|
20
|
+
tksheet-7.4.16.dist-info/WHEEL,sha256=DK49LOLCYiurdXXOXwGJm6U4DkHkg4lcxjhqwRa0CP4,91
|
21
|
+
tksheet-7.4.16.dist-info/top_level.txt,sha256=my61PXCcck_HHAc9cq3NAlyAr3A3FXxCy9gptEOaCN8,8
|
22
|
+
tksheet-7.4.16.dist-info/RECORD,,
|
File without changes
|
File without changes
|