tksheet 7.0.6__py3-none-any.whl → 7.1.0__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 +96 -96
- tksheet/column_headers.py +252 -270
- tksheet/functions.py +37 -9
- tksheet/main_table.py +743 -795
- tksheet/other_classes.py +129 -4
- tksheet/row_index.py +470 -316
- tksheet/sheet.py +994 -177
- tksheet/sheet_options.py +34 -0
- tksheet/text_editor.py +93 -78
- tksheet/themes.py +104 -0
- tksheet/vars.py +35 -0
- {tksheet-7.0.6.dist-info → tksheet-7.1.0.dist-info}/METADATA +1 -1
- tksheet-7.1.0.dist-info/RECORD +20 -0
- {tksheet-7.0.6.dist-info → tksheet-7.1.0.dist-info}/WHEEL +1 -1
- tksheet-7.0.6.dist-info/RECORD +0 -20
- {tksheet-7.0.6.dist-info → tksheet-7.1.0.dist-info}/LICENSE.txt +0 -0
- {tksheet-7.0.6.dist-info → tksheet-7.1.0.dist-info}/top_level.txt +0 -0
tksheet/sheet_options.py
CHANGED
@@ -168,6 +168,38 @@ def new_sheet_options() -> DotDict:
|
|
168
168
|
"table_selected_columns_border_fg": theme_light_blue["table_selected_columns_border_fg"],
|
169
169
|
"table_selected_columns_bg": theme_light_blue["table_selected_columns_bg"],
|
170
170
|
"table_selected_columns_fg": theme_light_blue["table_selected_columns_fg"],
|
171
|
+
"vertical_scroll_background": theme_light_blue["vertical_scroll_background"],
|
172
|
+
"horizontal_scroll_background": theme_light_blue["horizontal_scroll_background"],
|
173
|
+
"vertical_scroll_troughcolor": theme_light_blue["vertical_scroll_troughcolor"],
|
174
|
+
"horizontal_scroll_troughcolor": theme_light_blue["horizontal_scroll_troughcolor"],
|
175
|
+
"vertical_scroll_lightcolor": theme_light_blue["vertical_scroll_lightcolor"],
|
176
|
+
"horizontal_scroll_lightcolor": theme_light_blue["horizontal_scroll_lightcolor"],
|
177
|
+
"vertical_scroll_darkcolor": theme_light_blue["vertical_scroll_darkcolor"],
|
178
|
+
"horizontal_scroll_darkcolor": theme_light_blue["horizontal_scroll_darkcolor"],
|
179
|
+
"vertical_scroll_relief": theme_light_blue["vertical_scroll_relief"],
|
180
|
+
"horizontal_scroll_relief": theme_light_blue["horizontal_scroll_relief"],
|
181
|
+
"vertical_scroll_troughrelief": theme_light_blue["vertical_scroll_troughrelief"],
|
182
|
+
"horizontal_scroll_troughrelief": theme_light_blue["horizontal_scroll_troughrelief"],
|
183
|
+
"vertical_scroll_bordercolor": theme_light_blue["vertical_scroll_bordercolor"],
|
184
|
+
"horizontal_scroll_bordercolor": theme_light_blue["horizontal_scroll_bordercolor"],
|
185
|
+
"vertical_scroll_active_bg": theme_light_blue["vertical_scroll_active_bg"],
|
186
|
+
"horizontal_scroll_active_bg": theme_light_blue["horizontal_scroll_active_bg"],
|
187
|
+
"vertical_scroll_not_active_bg": theme_light_blue["vertical_scroll_not_active_bg"],
|
188
|
+
"horizontal_scroll_not_active_bg": theme_light_blue["horizontal_scroll_not_active_bg"],
|
189
|
+
"vertical_scroll_pressed_bg": theme_light_blue["vertical_scroll_pressed_bg"],
|
190
|
+
"horizontal_scroll_pressed_bg": theme_light_blue["horizontal_scroll_pressed_bg"],
|
191
|
+
"vertical_scroll_active_fg": theme_light_blue["vertical_scroll_active_fg"],
|
192
|
+
"horizontal_scroll_active_fg": theme_light_blue["horizontal_scroll_active_fg"],
|
193
|
+
"vertical_scroll_not_active_fg": theme_light_blue["vertical_scroll_not_active_fg"],
|
194
|
+
"horizontal_scroll_not_active_fg": theme_light_blue["horizontal_scroll_not_active_fg"],
|
195
|
+
"vertical_scroll_pressed_fg": theme_light_blue["vertical_scroll_pressed_fg"],
|
196
|
+
"horizontal_scroll_pressed_fg": theme_light_blue["horizontal_scroll_pressed_fg"],
|
197
|
+
"vertical_scroll_borderwidth": 1,
|
198
|
+
"horizontal_scroll_borderwidth": 1,
|
199
|
+
"vertical_scroll_gripcount": 0,
|
200
|
+
"horizontal_scroll_gripcount": 0,
|
201
|
+
"vertical_scroll_arrowsize": "",
|
202
|
+
"horizontal_scroll_arrowsize": "",
|
171
203
|
"set_cell_sizes_on_zoom": False,
|
172
204
|
"auto_resize_columns": None,
|
173
205
|
"auto_resize_rows": None,
|
@@ -201,5 +233,7 @@ def new_sheet_options() -> DotDict:
|
|
201
233
|
"show_horizontal_grid": True,
|
202
234
|
"display_selected_fg_over_highlights": False,
|
203
235
|
"show_selected_cells_border": True,
|
236
|
+
"treeview": False,
|
237
|
+
"treeview_indent": "2",
|
204
238
|
}
|
205
239
|
)
|
tksheet/text_editor.py
CHANGED
@@ -13,24 +13,15 @@ from .vars import (
|
|
13
13
|
)
|
14
14
|
|
15
15
|
|
16
|
-
class
|
16
|
+
class TextEditorTkText(tk.Text):
|
17
17
|
def __init__(
|
18
18
|
self,
|
19
19
|
parent: tk.Misc,
|
20
|
-
menu_kwargs: DotDict,
|
21
|
-
sheet_ops: DotDict,
|
22
|
-
text: None | str = None,
|
23
|
-
state: str = "normal",
|
24
|
-
bg: str = "white",
|
25
|
-
fg: str = "black",
|
26
|
-
align: str = "w",
|
27
20
|
newline_binding: None | Callable = None,
|
28
21
|
) -> None:
|
29
22
|
tk.Text.__init__(
|
30
23
|
self,
|
31
24
|
parent,
|
32
|
-
font=menu_kwargs.font,
|
33
|
-
state=state,
|
34
25
|
spacing1=0,
|
35
26
|
spacing2=0,
|
36
27
|
spacing3=0,
|
@@ -38,24 +29,38 @@ class TextEditor_(tk.Text):
|
|
38
29
|
highlightthickness=0,
|
39
30
|
undo=True,
|
40
31
|
maxundo=30,
|
41
|
-
background=bg,
|
42
|
-
foreground=fg,
|
43
|
-
insertbackground=fg,
|
44
32
|
)
|
45
33
|
self.parent = parent
|
46
34
|
self.newline_bindng = newline_binding
|
47
|
-
if align == "w":
|
48
|
-
self.align = "left"
|
49
|
-
elif align == "center":
|
50
|
-
self.align = "center"
|
51
|
-
elif align == "e":
|
52
|
-
self.align = "right"
|
53
|
-
self.tag_configure("align", justify=self.align)
|
54
|
-
if text:
|
55
|
-
self.insert(1.0, text)
|
56
|
-
self.yview_moveto(1)
|
57
|
-
self.tag_add("align", 1.0, "end")
|
58
35
|
self.rc_popup_menu = tk.Menu(self, tearoff=0)
|
36
|
+
self.bind("<1>", lambda event: self.focus_set())
|
37
|
+
self.bind(rc_binding, self.rc)
|
38
|
+
self.bind(f"<{ctrl_key}-a>", self.select_all)
|
39
|
+
self.bind(f"<{ctrl_key}-A>", self.select_all)
|
40
|
+
self._orig = self._w + "_orig"
|
41
|
+
self.tk.call("rename", self._w, self._orig)
|
42
|
+
self.tk.createcommand(self._w, self._proxy)
|
43
|
+
|
44
|
+
def reset(
|
45
|
+
self,
|
46
|
+
menu_kwargs: dict,
|
47
|
+
sheet_ops: dict,
|
48
|
+
align: str,
|
49
|
+
font: tuple,
|
50
|
+
bg: str,
|
51
|
+
fg: str,
|
52
|
+
state: str,
|
53
|
+
text: str = "",
|
54
|
+
) -> None:
|
55
|
+
self.config(
|
56
|
+
font=font,
|
57
|
+
background=bg,
|
58
|
+
foreground=fg,
|
59
|
+
insertbackground=fg,
|
60
|
+
state=state,
|
61
|
+
)
|
62
|
+
self.align = align
|
63
|
+
self.rc_popup_menu.delete(0, None)
|
59
64
|
self.rc_popup_menu.add_command(
|
60
65
|
label=sheet_ops.select_all_label,
|
61
66
|
accelerator=sheet_ops.select_all_accelerator,
|
@@ -86,18 +91,21 @@ class TextEditor_(tk.Text):
|
|
86
91
|
command=self.undo,
|
87
92
|
**menu_kwargs,
|
88
93
|
)
|
89
|
-
self.
|
90
|
-
self.
|
91
|
-
self.
|
92
|
-
self.
|
93
|
-
|
94
|
-
|
95
|
-
|
94
|
+
self.delete(1.0, "end")
|
95
|
+
self.insert(1.0, text)
|
96
|
+
self.yview_moveto(1)
|
97
|
+
self.tag_configure("align", justify=self.align)
|
98
|
+
if align == "w":
|
99
|
+
self.align = "left"
|
100
|
+
elif align == "center":
|
101
|
+
self.align = "center"
|
102
|
+
elif align == "e":
|
103
|
+
self.align = "right"
|
104
|
+
self.tag_add("align", 1.0, "end")
|
96
105
|
|
97
106
|
def _proxy(self, command: object, *args) -> object:
|
98
|
-
cmd = (self._orig, command) + args
|
99
107
|
try:
|
100
|
-
result = self.tk.call(
|
108
|
+
result = self.tk.call((self._orig, command) + args)
|
101
109
|
except Exception:
|
102
110
|
return
|
103
111
|
if command in (
|
@@ -107,9 +115,8 @@ class TextEditor_(tk.Text):
|
|
107
115
|
):
|
108
116
|
self.tag_add("align", 1.0, "end")
|
109
117
|
self.event_generate("<<TextModified>>")
|
110
|
-
if args and len(args) > 1 and args[1] != "\n":
|
111
|
-
|
112
|
-
if out_of_bounds != (0.0, 1.0) and self.newline_bindng is not None:
|
118
|
+
if args and len(args) > 1 and args[1] != "\n" and args != ("1.0", "end"):
|
119
|
+
if self.yview() != (0.0, 1.0) and self.newline_bindng is not None:
|
113
120
|
self.newline_bindng(
|
114
121
|
r=self.parent.r,
|
115
122
|
c=self.parent.c,
|
@@ -148,62 +155,70 @@ class TextEditor(tk.Frame):
|
|
148
155
|
def __init__(
|
149
156
|
self,
|
150
157
|
parent: tk.Misc,
|
151
|
-
menu_kwargs: DotDict,
|
152
|
-
sheet_ops: DotDict,
|
153
|
-
border_color: str,
|
154
|
-
text: None | str = None,
|
155
|
-
state: str = "normal",
|
156
|
-
width: None | int = None,
|
157
|
-
height: None | int = None,
|
158
|
-
show_border: bool = True,
|
159
|
-
bg: str = "white",
|
160
|
-
fg: str = "black",
|
161
|
-
align: str = "w",
|
162
|
-
r: int = 0,
|
163
|
-
c: int = 0,
|
164
158
|
newline_binding: None | Callable = None,
|
165
159
|
) -> None:
|
166
160
|
tk.Frame.__init__(
|
167
161
|
self,
|
168
162
|
parent,
|
169
|
-
|
170
|
-
|
171
|
-
highlightbackground=border_color,
|
172
|
-
highlightcolor=border_color,
|
173
|
-
highlightthickness=2 if show_border else 0,
|
163
|
+
width=0,
|
164
|
+
height=0,
|
174
165
|
bd=0,
|
175
166
|
)
|
176
|
-
self.parent = parent
|
177
|
-
self.r = r
|
178
|
-
self.c = c
|
179
|
-
self.textedit = TextEditor_(
|
180
|
-
self,
|
181
|
-
menu_kwargs=menu_kwargs,
|
182
|
-
sheet_ops=sheet_ops,
|
183
|
-
text=text,
|
184
|
-
state=state,
|
185
|
-
bg=bg,
|
186
|
-
fg=fg,
|
187
|
-
align=align,
|
188
|
-
newline_binding=newline_binding,
|
189
|
-
)
|
190
|
-
self.textedit.grid(row=0, column=0, sticky="nswe")
|
191
167
|
self.grid_columnconfigure(0, weight=1)
|
192
168
|
self.grid_rowconfigure(0, weight=1)
|
193
169
|
self.grid_propagate(False)
|
194
|
-
self.
|
195
|
-
self.
|
196
|
-
self.
|
170
|
+
self.parent = parent
|
171
|
+
self.r = 0
|
172
|
+
self.c = 0
|
173
|
+
self.tktext = TextEditorTkText(self, newline_binding=newline_binding)
|
174
|
+
self.tktext.grid(row=0, column=0, sticky="nswe")
|
197
175
|
|
198
176
|
def get(self) -> str:
|
199
|
-
return self.
|
177
|
+
return self.tktext.get("1.0", "end-1c")
|
200
178
|
|
201
179
|
def get_num_lines(self) -> int:
|
202
|
-
return int(self.
|
180
|
+
return int(self.tktext.index("end-1c").split(".")[0])
|
203
181
|
|
204
|
-
def set_text(self, text) -> None:
|
205
|
-
self.
|
206
|
-
self.
|
182
|
+
def set_text(self, text: str = "") -> None:
|
183
|
+
self.tktext.delete(1.0, "end")
|
184
|
+
self.tktext.insert(1.0, text)
|
207
185
|
|
208
186
|
def scroll_to_bottom(self) -> None:
|
209
|
-
self.
|
187
|
+
self.tktext.yview_moveto(1)
|
188
|
+
|
189
|
+
def reset(
|
190
|
+
self,
|
191
|
+
width: int,
|
192
|
+
height: int,
|
193
|
+
border_color: str,
|
194
|
+
show_border: bool,
|
195
|
+
menu_kwargs: DotDict,
|
196
|
+
sheet_ops: DotDict,
|
197
|
+
bg: str,
|
198
|
+
fg: str,
|
199
|
+
align: str,
|
200
|
+
state: str,
|
201
|
+
r: int = 0,
|
202
|
+
c: int = 0,
|
203
|
+
text: str = "",
|
204
|
+
) -> None:
|
205
|
+
self.r = r
|
206
|
+
self.c = c
|
207
|
+
self.tktext.reset(
|
208
|
+
menu_kwargs=menu_kwargs,
|
209
|
+
sheet_ops=sheet_ops,
|
210
|
+
align=align,
|
211
|
+
font=menu_kwargs.font,
|
212
|
+
bg=bg,
|
213
|
+
fg=fg,
|
214
|
+
state=state,
|
215
|
+
text=text,
|
216
|
+
)
|
217
|
+
self.config(
|
218
|
+
width=width,
|
219
|
+
height=height,
|
220
|
+
background=bg,
|
221
|
+
highlightbackground=border_color,
|
222
|
+
highlightcolor=border_color,
|
223
|
+
highlightthickness=2 if show_border else 0,
|
224
|
+
)
|
tksheet/themes.py
CHANGED
@@ -44,6 +44,32 @@ theme_light_blue: dict[str, str] = {
|
|
44
44
|
"table_selected_columns_border_fg": "#0B57D0",
|
45
45
|
"table_selected_columns_bg": "#E6EFFD",
|
46
46
|
"table_selected_columns_fg": "black",
|
47
|
+
"vertical_scroll_background": "#FFFFFF",
|
48
|
+
"horizontal_scroll_background": "#FFFFFF",
|
49
|
+
"vertical_scroll_troughcolor": "#f9fbfd",
|
50
|
+
"horizontal_scroll_troughcolor": "#f9fbfd",
|
51
|
+
"vertical_scroll_lightcolor": "#FFFFFF",
|
52
|
+
"horizontal_scroll_lightcolor": "#FFFFFF",
|
53
|
+
"vertical_scroll_darkcolor": "gray50",
|
54
|
+
"horizontal_scroll_darkcolor": "gray50",
|
55
|
+
"vertical_scroll_relief": "flat",
|
56
|
+
"horizontal_scroll_relief": "flat",
|
57
|
+
"vertical_scroll_troughrelief": "flat",
|
58
|
+
"horizontal_scroll_troughrelief": "flat",
|
59
|
+
"vertical_scroll_bordercolor": "#f9fbfd",
|
60
|
+
"horizontal_scroll_bordercolor": "#f9fbfd",
|
61
|
+
"vertical_scroll_active_bg": "#bdc1c6",
|
62
|
+
"horizontal_scroll_active_bg": "#bdc1c6",
|
63
|
+
"vertical_scroll_not_active_bg": "#DADCE0",
|
64
|
+
"horizontal_scroll_not_active_bg": "#DADCE0",
|
65
|
+
"vertical_scroll_pressed_bg": "#bdc1c6",
|
66
|
+
"horizontal_scroll_pressed_bg": "#bdc1c6",
|
67
|
+
"vertical_scroll_active_fg": "#bdc1c6",
|
68
|
+
"horizontal_scroll_active_fg": "#bdc1c6",
|
69
|
+
"vertical_scroll_not_active_fg": "#DADCE0",
|
70
|
+
"horizontal_scroll_not_active_fg": "#DADCE0",
|
71
|
+
"vertical_scroll_pressed_fg": "#bdc1c6",
|
72
|
+
"horizontal_scroll_pressed_fg": "#bdc1c6",
|
47
73
|
}
|
48
74
|
|
49
75
|
theme_light_green: dict[str, str] = {
|
@@ -90,6 +116,32 @@ theme_light_green: dict[str, str] = {
|
|
90
116
|
"table_selected_columns_border_fg": "#217346",
|
91
117
|
"table_selected_columns_bg": "#E3E3E3",
|
92
118
|
"table_selected_columns_fg": "black",
|
119
|
+
"vertical_scroll_background": "#FFFFFF",
|
120
|
+
"horizontal_scroll_background": "#FFFFFF",
|
121
|
+
"vertical_scroll_troughcolor": "#f1f1f1",
|
122
|
+
"horizontal_scroll_troughcolor": "#f1f1f1",
|
123
|
+
"vertical_scroll_lightcolor": "#FFFFFF",
|
124
|
+
"horizontal_scroll_lightcolor": "#FFFFFF",
|
125
|
+
"vertical_scroll_darkcolor": "gray50",
|
126
|
+
"horizontal_scroll_darkcolor": "gray50",
|
127
|
+
"vertical_scroll_relief": "flat",
|
128
|
+
"horizontal_scroll_relief": "flat",
|
129
|
+
"vertical_scroll_troughrelief": "flat",
|
130
|
+
"horizontal_scroll_troughrelief": "flat",
|
131
|
+
"vertical_scroll_bordercolor": "#f1f1f1",
|
132
|
+
"horizontal_scroll_bordercolor": "#f1f1f1",
|
133
|
+
"vertical_scroll_active_bg": "#707070",
|
134
|
+
"horizontal_scroll_active_bg": "#707070",
|
135
|
+
"vertical_scroll_not_active_bg": "#c1c1c1",
|
136
|
+
"horizontal_scroll_not_active_bg": "#c1c1c1",
|
137
|
+
"vertical_scroll_pressed_bg": "#707070",
|
138
|
+
"horizontal_scroll_pressed_bg": "#707070",
|
139
|
+
"vertical_scroll_active_fg": "#707070",
|
140
|
+
"horizontal_scroll_active_fg": "#707070",
|
141
|
+
"vertical_scroll_not_active_fg": "#c1c1c1",
|
142
|
+
"horizontal_scroll_not_active_fg": "#c1c1c1",
|
143
|
+
"vertical_scroll_pressed_fg": "#707070",
|
144
|
+
"horizontal_scroll_pressed_fg": "#707070",
|
93
145
|
}
|
94
146
|
|
95
147
|
theme_dark: dict[str, str] = {
|
@@ -136,6 +188,32 @@ theme_dark: dict[str, str] = {
|
|
136
188
|
"table_selected_columns_border_fg": "#4489F7",
|
137
189
|
"table_selected_columns_bg": "#404040",
|
138
190
|
"table_selected_columns_fg": "#F7F7F7",
|
191
|
+
"vertical_scroll_background": "#3b3b3d",
|
192
|
+
"horizontal_scroll_background": "#3b3b3d",
|
193
|
+
"vertical_scroll_troughcolor": "#000000",
|
194
|
+
"horizontal_scroll_troughcolor": "#000000",
|
195
|
+
"vertical_scroll_lightcolor": "gray50",
|
196
|
+
"horizontal_scroll_lightcolor": "gray50",
|
197
|
+
"vertical_scroll_darkcolor": "gray20",
|
198
|
+
"horizontal_scroll_darkcolor": "gray20",
|
199
|
+
"vertical_scroll_relief": "flat",
|
200
|
+
"horizontal_scroll_relief": "flat",
|
201
|
+
"vertical_scroll_troughrelief": "flat",
|
202
|
+
"horizontal_scroll_troughrelief": "flat",
|
203
|
+
"vertical_scroll_bordercolor": "#000000",
|
204
|
+
"horizontal_scroll_bordercolor": "#000000",
|
205
|
+
"vertical_scroll_active_bg": "#a0a0a0",
|
206
|
+
"horizontal_scroll_active_bg": "#a0a0a0",
|
207
|
+
"vertical_scroll_not_active_bg": "#3b3b3d",
|
208
|
+
"horizontal_scroll_not_active_bg": "#3b3b3d",
|
209
|
+
"vertical_scroll_pressed_bg": "#a0a0a0",
|
210
|
+
"horizontal_scroll_pressed_bg": "#a0a0a0",
|
211
|
+
"vertical_scroll_active_fg": "#a0a0a0",
|
212
|
+
"horizontal_scroll_active_fg": "#a0a0a0",
|
213
|
+
"vertical_scroll_not_active_fg": "#3b3b3d",
|
214
|
+
"horizontal_scroll_not_active_fg": "#3b3b3d",
|
215
|
+
"vertical_scroll_pressed_fg": "#a0a0a0",
|
216
|
+
"horizontal_scroll_pressed_fg": "#a0a0a0",
|
139
217
|
}
|
140
218
|
|
141
219
|
theme_black: dict[str, str] = {
|
@@ -182,6 +260,32 @@ theme_black: dict[str, str] = {
|
|
182
260
|
"table_selected_columns_border_fg": "#FBB86C",
|
183
261
|
"table_selected_columns_bg": "#404040",
|
184
262
|
"table_selected_columns_fg": "#F7F7F7",
|
263
|
+
"vertical_scroll_background": "#3b3a39",
|
264
|
+
"horizontal_scroll_background": "#3b3a39",
|
265
|
+
"vertical_scroll_troughcolor": "#000000",
|
266
|
+
"horizontal_scroll_troughcolor": "#000000",
|
267
|
+
"vertical_scroll_lightcolor": "gray50",
|
268
|
+
"horizontal_scroll_lightcolor": "gray50",
|
269
|
+
"vertical_scroll_darkcolor": "gray20",
|
270
|
+
"horizontal_scroll_darkcolor": "gray20",
|
271
|
+
"vertical_scroll_relief": "flat",
|
272
|
+
"horizontal_scroll_relief": "flat",
|
273
|
+
"vertical_scroll_troughrelief": "flat",
|
274
|
+
"horizontal_scroll_troughrelief": "flat",
|
275
|
+
"vertical_scroll_bordercolor": "#000000",
|
276
|
+
"horizontal_scroll_bordercolor": "#000000",
|
277
|
+
"vertical_scroll_active_bg": "#a0a0a0",
|
278
|
+
"horizontal_scroll_active_bg": "#a0a0a0",
|
279
|
+
"vertical_scroll_not_active_bg": "#3b3a39",
|
280
|
+
"horizontal_scroll_not_active_bg": "#3b3a39",
|
281
|
+
"vertical_scroll_pressed_bg": "#a0a0a0",
|
282
|
+
"horizontal_scroll_pressed_bg": "#a0a0a0",
|
283
|
+
"vertical_scroll_active_fg": "#a0a0a0",
|
284
|
+
"horizontal_scroll_active_fg": "#a0a0a0",
|
285
|
+
"vertical_scroll_not_active_fg": "#3b3a39",
|
286
|
+
"horizontal_scroll_not_active_fg": "#3b3a39",
|
287
|
+
"vertical_scroll_pressed_fg": "#a0a0a0",
|
288
|
+
"horizontal_scroll_pressed_fg": "#a0a0a0",
|
185
289
|
}
|
186
290
|
|
187
291
|
theme_dark_blue: dict[str, str] = theme_black.copy()
|
tksheet/vars.py
CHANGED
@@ -21,7 +21,42 @@ named_span_types = (
|
|
21
21
|
emitted_events: set[str] = {
|
22
22
|
"<<SheetModified>>",
|
23
23
|
"<<SheetRedrawn>>",
|
24
|
+
"<<SheetSelect>>",
|
24
25
|
}
|
25
26
|
backwards_compatibility_keys: dict[str, str] = {
|
26
27
|
"font": "table_font",
|
27
28
|
}
|
29
|
+
scrollbar_options_keys: set[str] = {
|
30
|
+
"vertical_scroll_background",
|
31
|
+
"horizontal_scroll_background",
|
32
|
+
"vertical_scroll_troughcolor",
|
33
|
+
"horizontal_scroll_troughcolor",
|
34
|
+
"vertical_scroll_lightcolor",
|
35
|
+
"horizontal_scroll_lightcolor",
|
36
|
+
"vertical_scroll_darkcolor",
|
37
|
+
"horizontal_scroll_darkcolor",
|
38
|
+
"vertical_scroll_relief",
|
39
|
+
"horizontal_scroll_relief",
|
40
|
+
"vertical_scroll_troughrelief",
|
41
|
+
"horizontal_scroll_troughrelief",
|
42
|
+
"vertical_scroll_bordercolor",
|
43
|
+
"horizontal_scroll_bordercolor",
|
44
|
+
"vertical_scroll_borderwidth",
|
45
|
+
"horizontal_scroll_borderwidth",
|
46
|
+
"vertical_scroll_gripcount",
|
47
|
+
"horizontal_scroll_gripcount",
|
48
|
+
"vertical_scroll_arrowsize",
|
49
|
+
"horizontal_scroll_arrowsize",
|
50
|
+
"vertical_scroll_active_bg",
|
51
|
+
"horizontal_scroll_active_bg",
|
52
|
+
"vertical_scroll_not_active_bg",
|
53
|
+
"horizontal_scroll_not_active_bg",
|
54
|
+
"vertical_scroll_pressed_bg",
|
55
|
+
"horizontal_scroll_pressed_bg",
|
56
|
+
"vertical_scroll_active_fg",
|
57
|
+
"horizontal_scroll_active_fg",
|
58
|
+
"vertical_scroll_not_active_fg",
|
59
|
+
"horizontal_scroll_not_active_fg",
|
60
|
+
"vertical_scroll_pressed_fg",
|
61
|
+
"horizontal_scroll_pressed_fg",
|
62
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
tksheet/__init__.py,sha256=BtFx0z_hW793tGDNe8VmnGEjZKAdSXxq6gHyklEky7s,1970
|
2
|
+
tksheet/colors.py,sha256=1k06VorynLmnC4FdJg8H4reIA6rXaeXBpdMwXLhN8oc,51594
|
3
|
+
tksheet/column_headers.py,sha256=1I49CQS4unBcJ-y044R-DtYhJ4zUplrOfImOk8qHIj8,99396
|
4
|
+
tksheet/formatters.py,sha256=DXif00aq9DgFpXwkbiqD86KxtDg0Meop51hLY-KcGNQ,10037
|
5
|
+
tksheet/functions.py,sha256=cMnWgE-rZVrCH8wXKKtg8uXn60pd5MuOE3Bm9T94ePM,38546
|
6
|
+
tksheet/main_table.py,sha256=QM4peTylZP7omXriKQO9kP-ZwHGDSILIXECjy-SEFSw,318674
|
7
|
+
tksheet/other_classes.py,sha256=s559IxoFEeAgxTKrrHZnAeXUXWIEmiP4tBncIdQIXSQ,13544
|
8
|
+
tksheet/row_index.py,sha256=4Q_J83AKKZhajeK23_deby9CXfL4wl1MOWnSu8LW2PU,104428
|
9
|
+
tksheet/sheet.py,sha256=66AKMY-wNiLi2briyUlbUHtsVNwEWKnljx58q1c1tKU,254086
|
10
|
+
tksheet/sheet_options.py,sha256=Vcy4RxTKvf2HM-Yc53ex0lpBe6ATXc_pdx4oLhfjDgU,11906
|
11
|
+
tksheet/text_editor.py,sha256=7xsEbgIyAWHDBWroh2wk1VeoVftFALlPZC9OANgD6LA,6662
|
12
|
+
tksheet/themes.py,sha256=OwUe31NRbosjw3ZoZsMyB8lNVyYin9YcKLhCturi5q8,13398
|
13
|
+
tksheet/top_left_rectangle.py,sha256=-2u9GfOvcqhkKwHEtbqdFvXCY3RbvL5k2Sh9l3r_k04,8275
|
14
|
+
tksheet/types.py,sha256=IgoEHMbceKpakcZtanxKaKJ4RdCq7UW6EoEIIz5O59k,340
|
15
|
+
tksheet/vars.py,sha256=Iukk7-MMT9X7vv0m3nQPKzbp2Iw2Pg1wJEW7js919Mo,2092
|
16
|
+
tksheet-7.1.0.dist-info/LICENSE.txt,sha256=ndbcCPe9SlHfweE_W2RAueWUe2k7yudyxYLq6WjFdn4,1101
|
17
|
+
tksheet-7.1.0.dist-info/METADATA,sha256=ue-jn_hvJCVDRsFhOc3z5ikKDT5joY5s2JggO-4-Ksk,6013
|
18
|
+
tksheet-7.1.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
19
|
+
tksheet-7.1.0.dist-info/top_level.txt,sha256=my61PXCcck_HHAc9cq3NAlyAr3A3FXxCy9gptEOaCN8,8
|
20
|
+
tksheet-7.1.0.dist-info/RECORD,,
|
tksheet-7.0.6.dist-info/RECORD
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
tksheet/__init__.py,sha256=XtBqOody_p4PaYDh9VV3KWik6kDI6glYeQ0952dRxAo,1883
|
2
|
-
tksheet/colors.py,sha256=1k06VorynLmnC4FdJg8H4reIA6rXaeXBpdMwXLhN8oc,51594
|
3
|
-
tksheet/column_headers.py,sha256=YNRFVkTI47cgG9JESrcP2fk7gWpamDy87Qi4bByV4vE,100924
|
4
|
-
tksheet/formatters.py,sha256=DXif00aq9DgFpXwkbiqD86KxtDg0Meop51hLY-KcGNQ,10037
|
5
|
-
tksheet/functions.py,sha256=e2aY_f41tC_wPh0RCfzAhgcXY90EfMLFbF7zs03X2VM,37978
|
6
|
-
tksheet/main_table.py,sha256=akR2NKVoIjDrz4wasIrmp9OaMONtLKgwoi0NV9MThvs,322880
|
7
|
-
tksheet/other_classes.py,sha256=upMaBtf1QBmkNFwieNCjve8Efj8eC3dpoPUDeerzmnY,10601
|
8
|
-
tksheet/row_index.py,sha256=3NI7T5UjqNJr9z8V3rriqwOgcWt7MwEYL0QDK39WqYk,99292
|
9
|
-
tksheet/sheet.py,sha256=FOPACPwr73EIztS7GQQf_ERPC7NrR2yEiK9HCQqcszo,220008
|
10
|
-
tksheet/sheet_options.py,sha256=tkiXWwxpouoFbv2ueCRXwsMLLSXMab1n-Gdk0IC53Hc,9125
|
11
|
-
tksheet/text_editor.py,sha256=-2X0YZaINm4FzKsgZJNTmoowSOCpO52ILFDrAjaW3iQ,6511
|
12
|
-
tksheet/themes.py,sha256=j4mds0-6ki9Le9SgDerZAF9r0o4xTrAHaRtX-KssW9Q,8546
|
13
|
-
tksheet/top_left_rectangle.py,sha256=-2u9GfOvcqhkKwHEtbqdFvXCY3RbvL5k2Sh9l3r_k04,8275
|
14
|
-
tksheet/types.py,sha256=IgoEHMbceKpakcZtanxKaKJ4RdCq7UW6EoEIIz5O59k,340
|
15
|
-
tksheet/vars.py,sha256=ZdYtTSwQ7CpmUktPy0a8swWnh7RorITkPEDuB5rm-N4,871
|
16
|
-
tksheet-7.0.6.dist-info/LICENSE.txt,sha256=ndbcCPe9SlHfweE_W2RAueWUe2k7yudyxYLq6WjFdn4,1101
|
17
|
-
tksheet-7.0.6.dist-info/METADATA,sha256=M-3_cwi2fiRinV3Q67giG4ThPaRjVRZGqiqPWSsfhqw,6013
|
18
|
-
tksheet-7.0.6.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
19
|
-
tksheet-7.0.6.dist-info/top_level.txt,sha256=my61PXCcck_HHAc9cq3NAlyAr3A3FXxCy9gptEOaCN8,8
|
20
|
-
tksheet-7.0.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|