tksheet 7.4.11__py3-none-any.whl → 7.4.13__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 +44 -65
- tksheet/functions.py +109 -38
- tksheet/main_table.py +325 -316
- tksheet/other_classes.py +4 -2
- tksheet/row_index.py +177 -167
- tksheet/sheet.py +16 -10
- {tksheet-7.4.11.dist-info → tksheet-7.4.13.dist-info}/METADATA +7 -7
- tksheet-7.4.13.dist-info/RECORD +22 -0
- {tksheet-7.4.11.dist-info → tksheet-7.4.13.dist-info}/WHEEL +1 -1
- tksheet-7.4.11.dist-info/RECORD +0 -22
- {tksheet-7.4.11.dist-info → tksheet-7.4.13.dist-info}/LICENSE.txt +0 -0
- {tksheet-7.4.11.dist-info → tksheet-7.4.13.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",
|
@@ -4647,10 +4647,9 @@ class Sheet(tk.Frame):
|
|
4647
4647
|
if index[rns[item]].children:
|
4648
4648
|
open_ids.add(item)
|
4649
4649
|
if rns[item] in disp_set:
|
4650
|
-
|
4651
|
-
|
4652
|
-
|
4653
|
-
to_open.extend(to_disp)
|
4650
|
+
for did in descendants(item, check_open=True):
|
4651
|
+
disp_set.add(rns[did])
|
4652
|
+
to_open.append(rns[did])
|
4654
4653
|
return to_open
|
4655
4654
|
|
4656
4655
|
def tree_open(self, *items, redraw: bool = True) -> Sheet:
|
@@ -4924,7 +4923,7 @@ class Sheet(tk.Frame):
|
|
4924
4923
|
"""
|
4925
4924
|
Also deletes all descendants of items
|
4926
4925
|
"""
|
4927
|
-
rows = list(map(self.RI.rns.
|
4926
|
+
rows = list(map(self.RI.rns.__getitem__, filter(self.exists, unpack(items))))
|
4928
4927
|
if rows:
|
4929
4928
|
self.del_rows(rows, data_indexes=True, undo=undo)
|
4930
4929
|
return self.set_refresh_timer(rows)
|
@@ -5138,13 +5137,20 @@ class Sheet(tk.Frame):
|
|
5138
5137
|
for func in self.bound_events[event]:
|
5139
5138
|
func(data)
|
5140
5139
|
|
5141
|
-
def set_refresh_timer(
|
5140
|
+
def set_refresh_timer(
|
5141
|
+
self,
|
5142
|
+
redraw: bool = True,
|
5143
|
+
index: bool = True,
|
5144
|
+
header: bool = True,
|
5145
|
+
) -> Sheet:
|
5142
5146
|
if redraw and self.after_redraw_id is None:
|
5143
|
-
self.after_redraw_id = self.after(
|
5147
|
+
self.after_redraw_id = self.after(
|
5148
|
+
self.after_redraw_time_ms, lambda: self.after_redraw(index=index, header=header)
|
5149
|
+
)
|
5144
5150
|
return self
|
5145
5151
|
|
5146
|
-
def after_redraw(self) -> None:
|
5147
|
-
self.MT.main_table_redraw_grid_and_text(redraw_header=
|
5152
|
+
def after_redraw(self, index: bool = True, header: bool = True) -> None:
|
5153
|
+
self.MT.main_table_redraw_grid_and_text(redraw_header=header, redraw_row_index=index)
|
5148
5154
|
self.after_redraw_id = None
|
5149
5155
|
|
5150
5156
|
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.13
|
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
|
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://github.
|
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=CdTPPFo67goThv2unHBQc8yvXaJncIkDk6fZVh6jpEk,2327
|
2
|
+
tksheet/colors.py,sha256=dHhmdFuQDlwohDHsAfT9VdrKoSl_R33L72a3HCin5zo,51591
|
3
|
+
tksheet/column_headers.py,sha256=Ztr5QvTo3u9ANbZXheECMzRwZ9KvYnQQu-fncOJfNGg,102657
|
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=qks2dLqBE9GMAuEXaA4qiU-rrL-dzmz4-tkmkp6_ETk,53037
|
8
|
+
tksheet/main_table.py,sha256=rm1ZeVRXTv-CwxKirFrssjIz4fvrxNH7pw0JAwUOcH4,364840
|
9
|
+
tksheet/other_classes.py,sha256=B2SrUAviztDUOPGoWkcu-AixqAaKwItshoVZPGe1_Tc,16662
|
10
|
+
tksheet/row_index.py,sha256=aQOQh6d4x6bGeu4Kn1KMKU5F9hwSFFinAsh5hddC3Ho,141241
|
11
|
+
tksheet/sheet.py,sha256=6XOlCb6uhofSwylInVHk2UYufZn4sHXFsQggJ40uAaE,269689
|
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.13.dist-info/LICENSE.txt,sha256=ndbcCPe9SlHfweE_W2RAueWUe2k7yudyxYLq6WjFdn4,1101
|
19
|
+
tksheet-7.4.13.dist-info/METADATA,sha256=ch2OK72gHX9RudQZpnF4JuYDE3KyR0OQTvl3WYtJpsw,8095
|
20
|
+
tksheet-7.4.13.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
21
|
+
tksheet-7.4.13.dist-info/top_level.txt,sha256=my61PXCcck_HHAc9cq3NAlyAr3A3FXxCy9gptEOaCN8,8
|
22
|
+
tksheet-7.4.13.dist-info/RECORD,,
|
tksheet-7.4.11.dist-info/RECORD
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
tksheet/__init__.py,sha256=1b9l4y5i0jLE4wVnad_Xu_WSHysrpf1dhK8uTjBH734,2327
|
2
|
-
tksheet/colors.py,sha256=dHhmdFuQDlwohDHsAfT9VdrKoSl_R33L72a3HCin5zo,51591
|
3
|
-
tksheet/column_headers.py,sha256=tCIjq9sv5MfOfhC1hXzWU20RO1icdox1AvlYIESIQl4,103215
|
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=Lfo605jYI87KLWo6okQhfUlr-c93ZxuOR5VJKCNY6UM,51019
|
8
|
-
tksheet/main_table.py,sha256=0vArmPujf0Q8NI2GYDShp8Qys4A9qQ0dlru9Wg-fYlQ,363942
|
9
|
-
tksheet/other_classes.py,sha256=pe9_Cj6d3rdeMif9nGvUz0MEUChf0l4d669RNqcNhY4,16578
|
10
|
-
tksheet/row_index.py,sha256=_lCilwJfc5Eem22S7WZH_85zWQGGLGMa1upHUGCj_Y0,140328
|
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.11.dist-info/LICENSE.txt,sha256=ndbcCPe9SlHfweE_W2RAueWUe2k7yudyxYLq6WjFdn4,1101
|
19
|
-
tksheet-7.4.11.dist-info/METADATA,sha256=-oNnevhplE5S5kakZod7QpcSOb4RQUf8ZTrSTVXNoKs,8006
|
20
|
-
tksheet-7.4.11.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
21
|
-
tksheet-7.4.11.dist-info/top_level.txt,sha256=my61PXCcck_HHAc9cq3NAlyAr3A3FXxCy9gptEOaCN8,8
|
22
|
-
tksheet-7.4.11.dist-info/RECORD,,
|
File without changes
|
File without changes
|