tksheet 7.4.12__py3-none-any.whl → 7.4.14__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 +109 -94
- tksheet/find_window.py +2 -0
- tksheet/functions.py +17 -5
- tksheet/main_table.py +559 -510
- tksheet/other_classes.py +1 -1
- tksheet/row_index.py +241 -197
- tksheet/sheet.py +24 -16
- {tksheet-7.4.12.dist-info → tksheet-7.4.14.dist-info}/METADATA +7 -7
- tksheet-7.4.14.dist-info/RECORD +22 -0
- tksheet-7.4.12.dist-info/RECORD +0 -22
- {tksheet-7.4.12.dist-info → tksheet-7.4.14.dist-info}/LICENSE.txt +0 -0
- {tksheet-7.4.12.dist-info → tksheet-7.4.14.dist-info}/WHEEL +0 -0
- {tksheet-7.4.12.dist-info → tksheet-7.4.14.dist-info}/top_level.txt +0 -0
tksheet/sheet.py
CHANGED
@@ -127,7 +127,7 @@ class Sheet(tk.Frame):
|
|
127
127
|
max_row_height: float = float("inf"),
|
128
128
|
max_header_height: float = float("inf"),
|
129
129
|
max_index_width: float = float("inf"),
|
130
|
-
after_redraw_time_ms: int =
|
130
|
+
after_redraw_time_ms: int = 16,
|
131
131
|
set_all_heights_and_widths: bool = False,
|
132
132
|
zoom: int = 100,
|
133
133
|
align: str = "nw",
|
@@ -1726,12 +1726,14 @@ class Sheet(tk.Frame):
|
|
1726
1726
|
len_check = (total_cols + 1) if row_index else total_cols
|
1727
1727
|
for rn, r in enumerate(rows):
|
1728
1728
|
if len_check > (lnr := len(r)):
|
1729
|
-
r
|
1730
|
-
|
1731
|
-
|
1732
|
-
|
1733
|
-
|
1734
|
-
|
1729
|
+
r.extend(
|
1730
|
+
self.MT.gen_empty_row_seq(
|
1731
|
+
rn,
|
1732
|
+
end=total_cols,
|
1733
|
+
start=(lnr - 1) if row_index else lnr,
|
1734
|
+
r_ops=False,
|
1735
|
+
c_ops=False,
|
1736
|
+
)
|
1735
1737
|
)
|
1736
1738
|
event_data = self.MT.add_rows(
|
1737
1739
|
*self.MT.get_args_for_add_rows(
|
@@ -4647,10 +4649,9 @@ class Sheet(tk.Frame):
|
|
4647
4649
|
if index[rns[item]].children:
|
4648
4650
|
open_ids.add(item)
|
4649
4651
|
if rns[item] in disp_set:
|
4650
|
-
|
4651
|
-
|
4652
|
-
|
4653
|
-
to_open.extend(to_disp)
|
4652
|
+
for did in descendants(item, check_open=True):
|
4653
|
+
disp_set.add(rns[did])
|
4654
|
+
to_open.append(rns[did])
|
4654
4655
|
return to_open
|
4655
4656
|
|
4656
4657
|
def tree_open(self, *items, redraw: bool = True) -> Sheet:
|
@@ -4924,7 +4925,7 @@ class Sheet(tk.Frame):
|
|
4924
4925
|
"""
|
4925
4926
|
Also deletes all descendants of items
|
4926
4927
|
"""
|
4927
|
-
rows = list(map(self.RI.rns.
|
4928
|
+
rows = list(map(self.RI.rns.__getitem__, filter(self.exists, unpack(items))))
|
4928
4929
|
if rows:
|
4929
4930
|
self.del_rows(rows, data_indexes=True, undo=undo)
|
4930
4931
|
return self.set_refresh_timer(rows)
|
@@ -5138,13 +5139,20 @@ class Sheet(tk.Frame):
|
|
5138
5139
|
for func in self.bound_events[event]:
|
5139
5140
|
func(data)
|
5140
5141
|
|
5141
|
-
def set_refresh_timer(
|
5142
|
+
def set_refresh_timer(
|
5143
|
+
self,
|
5144
|
+
redraw: bool = True,
|
5145
|
+
index: bool = True,
|
5146
|
+
header: bool = True,
|
5147
|
+
) -> Sheet:
|
5142
5148
|
if redraw and self.after_redraw_id is None:
|
5143
|
-
self.after_redraw_id = self.after(
|
5149
|
+
self.after_redraw_id = self.after(
|
5150
|
+
self.after_redraw_time_ms, lambda: self.after_redraw(index=index, header=header)
|
5151
|
+
)
|
5144
5152
|
return self
|
5145
5153
|
|
5146
|
-
def after_redraw(self) -> None:
|
5147
|
-
self.MT.main_table_redraw_grid_and_text(redraw_header=
|
5154
|
+
def after_redraw(self, index: bool = True, header: bool = True) -> None:
|
5155
|
+
self.MT.main_table_redraw_grid_and_text(redraw_header=header, redraw_row_index=index)
|
5148
5156
|
self.after_redraw_id = None
|
5149
5157
|
|
5150
5158
|
def del_options_using_span(
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: tksheet
|
3
|
-
Version: 7.4.
|
3
|
+
Version: 7.4.14
|
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
|
@@ -63,23 +63,23 @@ License-File: LICENSE.txt
|
|
63
63
|
<tbody>
|
64
64
|
<tr>
|
65
65
|
<td style="color: LightCoral">Versions 6.x.x →</td>
|
66
|
-
<td><a href="https://github.com/ragardner/tksheet/wiki/Version-6">Documentation</a></td>
|
66
|
+
<td><a href="https://github.com/ragardner/tksheet/wiki/Version-6" target="_blank">Documentation</a></td>
|
67
67
|
</tr>
|
68
68
|
<tr>
|
69
69
|
<td style="color: lightgreen">Versions 7.x.x →</td>
|
70
|
-
<td><a href="https://ragardner.github.io/tksheet/DOCUMENTATION.html">Documentation</a></td>
|
70
|
+
<td><a href="https://ragardner.github.io/tksheet/DOCUMENTATION.html" target="_blank">Documentation</a></td>
|
71
71
|
</tr>
|
72
72
|
<tr>
|
73
|
-
<td align="right" colspan="2"><a href="https://github.com/ragardner/tksheet/blob/master/docs/CHANGELOG.md">Changelog</a></td>
|
73
|
+
<td align="right" colspan="2"><a href="https://github.com/ragardner/tksheet/blob/master/docs/CHANGELOG.md" target="_blank">Changelog</a></td>
|
74
74
|
</tr>
|
75
75
|
<tr>
|
76
|
-
<td align="right" colspan="2"><a href="https://github.com/ragardner/tksheet/wiki/Version-7#asking-questions">Questions</a></td>
|
76
|
+
<td align="right" colspan="2"><a href="https://github.com/ragardner/tksheet/wiki/Version-7#asking-questions" target="_blank">Questions</a></td>
|
77
77
|
</tr>
|
78
78
|
<tr>
|
79
|
-
<td align="right" colspan="2"><a href="https://github.com/ragardner/tksheet/wiki/Version-7#issues">Issues</a></td>
|
79
|
+
<td align="right" colspan="2"><a href="https://github.com/ragardner/tksheet/wiki/Version-7#issues" target="_blank">Issues</a></td>
|
80
80
|
</tr>
|
81
81
|
<tr>
|
82
|
-
<td align="right" colspan="2"><a href="https://github.com/ragardner/tksheet/wiki/Version-7#enhancements-or-suggestions">Suggestions and Contributors</a></td>
|
82
|
+
<td align="right" colspan="2"><a href="https://github.com/ragardner/tksheet/wiki/Version-7#enhancements-or-suggestions" target="_blank">Suggestions and Contributors</a></td>
|
83
83
|
</tr>
|
84
84
|
</tbody>
|
85
85
|
</table>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
tksheet/__init__.py,sha256=3PPVPpSjy9UW907gQGNjDApgWzFv0DikuRVnuAo3nAc,2327
|
2
|
+
tksheet/colors.py,sha256=dHhmdFuQDlwohDHsAfT9VdrKoSl_R33L72a3HCin5zo,51591
|
3
|
+
tksheet/column_headers.py,sha256=POoLTtR8qvrRYJl1c7WMc6UiDxfoNxhLUC2ikcEzt1M,103446
|
4
|
+
tksheet/constants.py,sha256=aiDvUSaPtl_TSNtRRJ_p87c9iTBz9ksMd5IsSXzz4Hk,13316
|
5
|
+
tksheet/find_window.py,sha256=w6S0FZFLRNHiM57Oq97avALT_PctIBPegSxnkNUwkwk,19982
|
6
|
+
tksheet/formatters.py,sha256=DGcRiMsDJnySNpQcjfiX84oJ7TmOSMdU6u9injIhA4g,10095
|
7
|
+
tksheet/functions.py,sha256=qks2dLqBE9GMAuEXaA4qiU-rrL-dzmz4-tkmkp6_ETk,53037
|
8
|
+
tksheet/main_table.py,sha256=dNpljN59pWIQ_QPBUKuZjxJMZw723neMQFkfSAP1sJI,366079
|
9
|
+
tksheet/other_classes.py,sha256=B2SrUAviztDUOPGoWkcu-AixqAaKwItshoVZPGe1_Tc,16662
|
10
|
+
tksheet/row_index.py,sha256=a0W78zqZIXVxfzyF5yYfXu1iUXnnDcK0ESodLl6joiA,141720
|
11
|
+
tksheet/sheet.py,sha256=nQES3tqopDmmyL7j7YKDjZRdfVVhmgzQ-2srII6COgE,269766
|
12
|
+
tksheet/sheet_options.py,sha256=ob-XYgGfBoi2TaFAvUUmlWUkw9xB-yXmJw17gu9__Lw,9948
|
13
|
+
tksheet/sorting.py,sha256=zcZPpRtP1h_xJGtGkG3E43H7deKQFnh9cMwZ1B2-aGc,17502
|
14
|
+
tksheet/text_editor.py,sha256=rU8Fz0-ltkM63W9io2DoZJPyzUGzCc9Z0qBtc4D1H40,7404
|
15
|
+
tksheet/themes.py,sha256=AoNAxibnQi04MN0Zpbn9-kyDnkiiV8TDNWP9FYjpuf0,18473
|
16
|
+
tksheet/tksheet_types.py,sha256=1MjXR34EmvP1KfHlLTvKKVnf0VMz_LU_WOM2q4o5hfI,4598
|
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,,
|
tksheet-7.4.12.dist-info/RECORD
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
tksheet/__init__.py,sha256=6B6RTt5-41j4-VcGxzbvcO6Ggfd56Ooy0GwxL_kfLhI,2327
|
2
|
-
tksheet/colors.py,sha256=dHhmdFuQDlwohDHsAfT9VdrKoSl_R33L72a3HCin5zo,51591
|
3
|
-
tksheet/column_headers.py,sha256=CIQwGNY0PSWb8q3Yl5lOBCGckZ83BDefFH1e4qKoLfs,102720
|
4
|
-
tksheet/constants.py,sha256=aiDvUSaPtl_TSNtRRJ_p87c9iTBz9ksMd5IsSXzz4Hk,13316
|
5
|
-
tksheet/find_window.py,sha256=TvbSqO42cw1o1AO0tQ0Q1iZogouNr4ObMo7JfkZCxgA,19877
|
6
|
-
tksheet/formatters.py,sha256=DGcRiMsDJnySNpQcjfiX84oJ7TmOSMdU6u9injIhA4g,10095
|
7
|
-
tksheet/functions.py,sha256=Ffw6yDHj83oubcp4P9VCQhTRWtGkMI2CBob4JFld91E,52567
|
8
|
-
tksheet/main_table.py,sha256=40MAVfBxQ6FycJcuqm9ZsMOjVYKWhISjht3FFZ-UQOI,363608
|
9
|
-
tksheet/other_classes.py,sha256=g6LYYHXO9RMy2mN_e-HmGa3Wuzhdxt5voO8-Ug19_Ag,16671
|
10
|
-
tksheet/row_index.py,sha256=2aiADtsPskfHZeU0JK7fD4kZm-25ooSjO3mguG9vTM4,139671
|
11
|
-
tksheet/sheet.py,sha256=ZgryLoqfkm2vtJDIVhXAvSUQ8G7TXztiID8Ftt3V2qo,269531
|
12
|
-
tksheet/sheet_options.py,sha256=ob-XYgGfBoi2TaFAvUUmlWUkw9xB-yXmJw17gu9__Lw,9948
|
13
|
-
tksheet/sorting.py,sha256=zcZPpRtP1h_xJGtGkG3E43H7deKQFnh9cMwZ1B2-aGc,17502
|
14
|
-
tksheet/text_editor.py,sha256=rU8Fz0-ltkM63W9io2DoZJPyzUGzCc9Z0qBtc4D1H40,7404
|
15
|
-
tksheet/themes.py,sha256=AoNAxibnQi04MN0Zpbn9-kyDnkiiV8TDNWP9FYjpuf0,18473
|
16
|
-
tksheet/tksheet_types.py,sha256=1MjXR34EmvP1KfHlLTvKKVnf0VMz_LU_WOM2q4o5hfI,4598
|
17
|
-
tksheet/top_left_rectangle.py,sha256=M52IrPIeMoYE3jSpooZmqw_0W5Fz_R-Yu1ZqA685EZ8,8557
|
18
|
-
tksheet-7.4.12.dist-info/LICENSE.txt,sha256=ndbcCPe9SlHfweE_W2RAueWUe2k7yudyxYLq6WjFdn4,1101
|
19
|
-
tksheet-7.4.12.dist-info/METADATA,sha256=0WsLK9P5f8h788tKDhCSQjtYad1UD9mDmIOuFz7eNjE,7999
|
20
|
-
tksheet-7.4.12.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
21
|
-
tksheet-7.4.12.dist-info/top_level.txt,sha256=my61PXCcck_HHAc9cq3NAlyAr3A3FXxCy9gptEOaCN8,8
|
22
|
-
tksheet-7.4.12.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|