tksheet 7.3.3__py3-none-any.whl → 7.3.4__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/colors.py +1 -1
- tksheet/column_headers.py +148 -206
- tksheet/find_window.py +4 -13
- tksheet/functions.py +6 -28
- tksheet/main_table.py +297 -398
- tksheet/other_classes.py +1 -1
- tksheet/row_index.py +188 -257
- tksheet/sheet.py +15 -40
- tksheet/sheet_options.py +3 -11
- tksheet/text_editor.py +3 -10
- tksheet/types.py +2 -7
- {tksheet-7.3.3.dist-info → tksheet-7.3.4.dist-info}/METADATA +1 -1
- tksheet-7.3.4.dist-info/RECORD +21 -0
- tksheet-7.3.3.dist-info/RECORD +0 -21
- {tksheet-7.3.3.dist-info → tksheet-7.3.4.dist-info}/LICENSE.txt +0 -0
- {tksheet-7.3.3.dist-info → tksheet-7.3.4.dist-info}/WHEEL +0 -0
- {tksheet-7.3.3.dist-info → tksheet-7.3.4.dist-info}/top_level.txt +0 -0
tksheet/sheet.py
CHANGED
@@ -3,28 +3,23 @@ from __future__ import annotations
|
|
3
3
|
import tkinter as tk
|
4
4
|
from bisect import bisect_left
|
5
5
|
from collections import defaultdict, deque
|
6
|
-
from collections.abc import
|
7
|
-
Callable,
|
8
|
-
Generator,
|
9
|
-
Hashable,
|
10
|
-
Iterator,
|
11
|
-
Sequence,
|
12
|
-
)
|
6
|
+
from collections.abc import Callable, Generator, Hashable, Iterator, Sequence
|
13
7
|
from functools import partial
|
14
|
-
from itertools import
|
15
|
-
accumulate,
|
16
|
-
chain,
|
17
|
-
filterfalse,
|
18
|
-
islice,
|
19
|
-
product,
|
20
|
-
repeat,
|
21
|
-
)
|
8
|
+
from itertools import accumulate, chain, filterfalse, islice, product, repeat
|
22
9
|
from operator import attrgetter
|
23
10
|
from timeit import default_timer
|
24
11
|
from tkinter import ttk
|
25
12
|
from typing import Literal
|
26
13
|
|
27
14
|
from .column_headers import ColumnHeaders
|
15
|
+
from .constants import (
|
16
|
+
USER_OS,
|
17
|
+
backwards_compatibility_keys,
|
18
|
+
emitted_events,
|
19
|
+
named_span_types,
|
20
|
+
rc_binding,
|
21
|
+
scrollbar_options_keys,
|
22
|
+
)
|
28
23
|
from .functions import (
|
29
24
|
add_highlight,
|
30
25
|
add_to_options,
|
@@ -48,12 +43,12 @@ from .functions import (
|
|
48
43
|
key_to_span,
|
49
44
|
new_tk_event,
|
50
45
|
num2alpha,
|
51
|
-
stored_event_dict,
|
52
46
|
pop_positions,
|
53
47
|
set_align,
|
54
48
|
set_readonly,
|
55
49
|
span_froms,
|
56
50
|
span_ranges,
|
51
|
+
stored_event_dict,
|
57
52
|
tksheet_type_error,
|
58
53
|
unpack,
|
59
54
|
)
|
@@ -70,30 +65,10 @@ from .other_classes import (
|
|
70
65
|
Span,
|
71
66
|
)
|
72
67
|
from .row_index import RowIndex
|
73
|
-
from .sheet_options import
|
74
|
-
|
75
|
-
)
|
76
|
-
from .themes import (
|
77
|
-
theme_black,
|
78
|
-
theme_dark,
|
79
|
-
theme_dark_blue,
|
80
|
-
theme_dark_green,
|
81
|
-
theme_light_blue,
|
82
|
-
theme_light_green,
|
83
|
-
)
|
68
|
+
from .sheet_options import new_sheet_options
|
69
|
+
from .themes import theme_black, theme_dark, theme_dark_blue, theme_dark_green, theme_light_blue, theme_light_green
|
84
70
|
from .top_left_rectangle import TopLeftRectangle
|
85
|
-
from .types import
|
86
|
-
AnyIter,
|
87
|
-
CreateSpanTypes,
|
88
|
-
)
|
89
|
-
from .constants import (
|
90
|
-
USER_OS,
|
91
|
-
backwards_compatibility_keys,
|
92
|
-
emitted_events,
|
93
|
-
named_span_types,
|
94
|
-
rc_binding,
|
95
|
-
scrollbar_options_keys,
|
96
|
-
)
|
71
|
+
from .types import AnyIter, CreateSpanTypes
|
97
72
|
|
98
73
|
|
99
74
|
class Sheet(tk.Frame):
|
@@ -338,7 +313,7 @@ class Sheet(tk.Frame):
|
|
338
313
|
self.name = name
|
339
314
|
self.last_event_data = EventDataDict()
|
340
315
|
self.bound_events = DotDict({k: [] for k in emitted_events})
|
341
|
-
self.
|
316
|
+
self._dropdown_cls = Dropdown
|
342
317
|
self.after_redraw_id = None
|
343
318
|
self.after_redraw_time_ms = after_redraw_time_ms
|
344
319
|
self.named_span_id = 0
|
tksheet/sheet_options.py
CHANGED
@@ -1,16 +1,8 @@
|
|
1
1
|
from __future__ import annotations
|
2
2
|
|
3
|
-
from .
|
4
|
-
|
5
|
-
|
6
|
-
)
|
7
|
-
from .themes import (
|
8
|
-
theme_light_blue,
|
9
|
-
)
|
10
|
-
from .constants import (
|
11
|
-
USER_OS,
|
12
|
-
ctrl_key,
|
13
|
-
)
|
3
|
+
from .constants import USER_OS, ctrl_key
|
4
|
+
from .other_classes import DotDict, FontTuple
|
5
|
+
from .themes import theme_light_blue
|
14
6
|
|
15
7
|
|
16
8
|
def new_sheet_options() -> DotDict:
|
tksheet/text_editor.py
CHANGED
@@ -4,16 +4,9 @@ import tkinter as tk
|
|
4
4
|
from collections.abc import Callable
|
5
5
|
from typing import Literal
|
6
6
|
|
7
|
-
from .
|
8
|
-
|
9
|
-
|
10
|
-
from .other_classes import (
|
11
|
-
DotDict,
|
12
|
-
)
|
13
|
-
from .constants import (
|
14
|
-
ctrl_key,
|
15
|
-
rc_binding,
|
16
|
-
)
|
7
|
+
from .constants import ctrl_key, rc_binding
|
8
|
+
from .functions import convert_align
|
9
|
+
from .other_classes import DotDict
|
17
10
|
|
18
11
|
|
19
12
|
class TextEditorTkText(tk.Text):
|
tksheet/types.py
CHANGED
@@ -1,14 +1,9 @@
|
|
1
1
|
from __future__ import annotations
|
2
2
|
|
3
|
-
from collections.abc import
|
4
|
-
Iterable,
|
5
|
-
Iterator,
|
6
|
-
)
|
3
|
+
from collections.abc import Iterable, Iterator
|
7
4
|
from typing import Tuple, Union
|
8
5
|
|
9
|
-
from .other_classes import
|
10
|
-
Span,
|
11
|
-
)
|
6
|
+
from .other_classes import Span
|
12
7
|
|
13
8
|
CreateSpanTypes = Union[
|
14
9
|
Tuple[()],
|
@@ -0,0 +1,21 @@
|
|
1
|
+
tksheet/__init__.py,sha256=R9-cO_1-zGTQ17K8KDglbM9MacYfa-IM6BzqSlQhFxc,2241
|
2
|
+
tksheet/colors.py,sha256=dHhmdFuQDlwohDHsAfT9VdrKoSl_R33L72a3HCin5zo,51591
|
3
|
+
tksheet/column_headers.py,sha256=ukYtRorIpq6gTIYHQrQdGqMKD0ybA5FI-56qt8-Cqww,100361
|
4
|
+
tksheet/constants.py,sha256=-NWaHEEpcQ0YHn4yGDf8SSffjceiEOayGqnEYw6VwPM,3507
|
5
|
+
tksheet/find_window.py,sha256=JfkgpGluSng3bKMBneDNQg-AJmBcmCW7JIhtYbSUZaE,8036
|
6
|
+
tksheet/formatters.py,sha256=21ZkMaDIJNUtjvtlAbPl8Y19I9nDxue-JJegw6hblz8,10551
|
7
|
+
tksheet/functions.py,sha256=kxL7dutuL_hTdoaK4rBidd3VGsWvYx1PAB7J_5oP8qg,46509
|
8
|
+
tksheet/main_table.py,sha256=vyqJPdzEQMmQXg4RQgFp3T3IuWpYouxibsnYsB4zP5c,342095
|
9
|
+
tksheet/other_classes.py,sha256=Jdy11Q_Hwx2x9j3xTMTEUR6mc16nPVy_zrv38ZmpM2Y,16411
|
10
|
+
tksheet/row_index.py,sha256=VV6Dy-NHiN7XVSeB5AmCzsfM1mO5tARcKaVe9o8pWDU,109036
|
11
|
+
tksheet/sheet.py,sha256=FbFb4Abyiv5-DfqBNQqvaeZ6gubF613hX7Ggz48i6A0,290363
|
12
|
+
tksheet/sheet_options.py,sha256=FOCZgSDnED10UjKJXhvfaRr2sNFnga2_dFHU_0cLJ6U,7856
|
13
|
+
tksheet/text_editor.py,sha256=4r6JJnzwfqAcYxdtBpPVRgePk_ijhMT0-2EgcD1fKJ0,7416
|
14
|
+
tksheet/themes.py,sha256=AoNAxibnQi04MN0Zpbn9-kyDnkiiV8TDNWP9FYjpuf0,18473
|
15
|
+
tksheet/top_left_rectangle.py,sha256=KhTT-rBUwQTgaHjSwL83cL5_71k2L1B7gxkSxZlTSK8,8598
|
16
|
+
tksheet/types.py,sha256=e1w3Op6RrRdG4u_e1ZAieCVf_lGu2CBQKIB_vKuiYyE,448
|
17
|
+
tksheet-7.3.4.dist-info/LICENSE.txt,sha256=ndbcCPe9SlHfweE_W2RAueWUe2k7yudyxYLq6WjFdn4,1101
|
18
|
+
tksheet-7.3.4.dist-info/METADATA,sha256=FokcL8Lyih0jrvJ4C7J1MSSgVXQXUcbXhxmR2yV_XpM,7781
|
19
|
+
tksheet-7.3.4.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
20
|
+
tksheet-7.3.4.dist-info/top_level.txt,sha256=my61PXCcck_HHAc9cq3NAlyAr3A3FXxCy9gptEOaCN8,8
|
21
|
+
tksheet-7.3.4.dist-info/RECORD,,
|
tksheet-7.3.3.dist-info/RECORD
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
tksheet/__init__.py,sha256=iBvftirYxhwiMRHzQhm0jJaaZIDt4BGwr8dXUE3hL5s,2241
|
2
|
-
tksheet/colors.py,sha256=1k06VorynLmnC4FdJg8H4reIA6rXaeXBpdMwXLhN8oc,51594
|
3
|
-
tksheet/column_headers.py,sha256=JoNtGsepsEho_uJq5K-yhKrO-z0qTGt4yWYE4J7Wz5w,102212
|
4
|
-
tksheet/constants.py,sha256=-NWaHEEpcQ0YHn4yGDf8SSffjceiEOayGqnEYw6VwPM,3507
|
5
|
-
tksheet/find_window.py,sha256=PcFPHLBLIeydqDTXCZwdCUAnipmA0i35oIyV3G0NnT0,8085
|
6
|
-
tksheet/formatters.py,sha256=21ZkMaDIJNUtjvtlAbPl8Y19I9nDxue-JJegw6hblz8,10551
|
7
|
-
tksheet/functions.py,sha256=Xg2T7AQ6O3VtDFqEJ0KhkQ6F3XDX86jWGcrmmFQiw_c,46625
|
8
|
-
tksheet/main_table.py,sha256=LjhYxEVVxklzz_oCxJnrbi-R5yTzbTiDesIJBWg014A,344770
|
9
|
-
tksheet/other_classes.py,sha256=wKSd30orLNIdlo9YV1nbyFy1HO8-kaey0wPUbstX5Tk,16411
|
10
|
-
tksheet/row_index.py,sha256=bduDpX2uiqH3oQWzDdKUIgOeF7LdT0ta8bHapxe6Rx0,111127
|
11
|
-
tksheet/sheet.py,sha256=gr4b7Gc5bnrHU7kcqRvti52auMCLdnXqYz8jP873rfo,290494
|
12
|
-
tksheet/sheet_options.py,sha256=zpTWAA_Sk0OaGvcxDVY5OyD8uRMWML1PLQr9eE07ztU,7899
|
13
|
-
tksheet/text_editor.py,sha256=3hVz8YKxf3-hZdVALjvlcaXkip-ZRANj7LyXfPxroXs,7454
|
14
|
-
tksheet/themes.py,sha256=AoNAxibnQi04MN0Zpbn9-kyDnkiiV8TDNWP9FYjpuf0,18473
|
15
|
-
tksheet/top_left_rectangle.py,sha256=KhTT-rBUwQTgaHjSwL83cL5_71k2L1B7gxkSxZlTSK8,8598
|
16
|
-
tksheet/types.py,sha256=4NIFPmq64g1vcbApWzLJrOZ8xhcRcOh2wCAzdn5LS2w,475
|
17
|
-
tksheet-7.3.3.dist-info/LICENSE.txt,sha256=ndbcCPe9SlHfweE_W2RAueWUe2k7yudyxYLq6WjFdn4,1101
|
18
|
-
tksheet-7.3.3.dist-info/METADATA,sha256=P-xVza5ntCFwJBSu_EI94lVvtGTyejRWxiKv0GrPpLY,7781
|
19
|
-
tksheet-7.3.3.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
20
|
-
tksheet-7.3.3.dist-info/top_level.txt,sha256=my61PXCcck_HHAc9cq3NAlyAr3A3FXxCy9gptEOaCN8,8
|
21
|
-
tksheet-7.3.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|