tksheet 7.4.7__py3-none-any.whl → 7.4.8__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/column_headers.py +2 -0
- tksheet/constants.py +195 -0
- tksheet/find_window.py +324 -30
- tksheet/functions.py +89 -39
- tksheet/main_table.py +443 -288
- tksheet/row_index.py +9 -9
- tksheet/sheet.py +138 -488
- tksheet/sheet_options.py +4 -0
- tksheet/tksheet_types.py +3 -0
- {tksheet-7.4.7.dist-info → tksheet-7.4.8.dist-info}/METADATA +1 -1
- tksheet-7.4.8.dist-info/RECORD +22 -0
- tksheet-7.4.7.dist-info/RECORD +0 -22
- {tksheet-7.4.7.dist-info → tksheet-7.4.8.dist-info}/LICENSE.txt +0 -0
- {tksheet-7.4.7.dist-info → tksheet-7.4.8.dist-info}/WHEEL +0 -0
- {tksheet-7.4.7.dist-info → tksheet-7.4.8.dist-info}/top_level.txt +0 -0
tksheet/row_index.py
CHANGED
@@ -923,6 +923,7 @@ class RowIndex(tk.Canvas):
|
|
923
923
|
value=val,
|
924
924
|
event_data=event_data,
|
925
925
|
)
|
926
|
+
event_data = self.MT.bulk_edit_validation(event_data)
|
926
927
|
if event_data["cells"]["table"]:
|
927
928
|
if undo and self.MT.undo_enabled:
|
928
929
|
self.MT.undo_stack.append(stored_event_dict(event_data))
|
@@ -1163,16 +1164,14 @@ class RowIndex(tk.Canvas):
|
|
1163
1164
|
else:
|
1164
1165
|
start_col, end_col = 0, len(self.MT.displayed_columns)
|
1165
1166
|
iterable = self.MT.displayed_columns[start_col:end_col]
|
1166
|
-
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
1170
|
-
|
1171
|
-
|
1172
|
-
)
|
1173
|
-
for datacn in iterable
|
1174
|
-
),
|
1167
|
+
cell_heights = (
|
1168
|
+
self.MT.get_wrapped_cell_height(
|
1169
|
+
datarn,
|
1170
|
+
datacn,
|
1171
|
+
)
|
1172
|
+
for datacn in iterable
|
1175
1173
|
)
|
1174
|
+
h = max(h, max(cell_heights, default=h))
|
1176
1175
|
self.MT.cells_cache = None
|
1177
1176
|
h = max(h, ih)
|
1178
1177
|
if only_if_too_small and h < self.MT.row_positions[row + 1] - self.MT.row_positions[row]:
|
@@ -2732,6 +2731,7 @@ class RowIndex(tk.Canvas):
|
|
2732
2731
|
min_to = min(event_data["moved"]["rows"]["data"].values())
|
2733
2732
|
max_to = max(event_data["moved"]["rows"]["data"].values())
|
2734
2733
|
insert_row = max_to if min_from <= min_to else min_to
|
2734
|
+
move_to_row = insert_row
|
2735
2735
|
move_to_iid = self.MT._row_index[insert_row].iid
|
2736
2736
|
|
2737
2737
|
move_to_index = self.PAR.index(move_to_iid)
|