tksheet 7.4.19__py3-none-any.whl → 7.4.20__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 +10 -11
- tksheet/main_table.py +7 -8
- tksheet/row_index.py +14 -15
- tksheet/sheet.py +0 -2
- {tksheet-7.4.19.dist-info → tksheet-7.4.20.dist-info}/METADATA +1 -1
- {tksheet-7.4.19.dist-info → tksheet-7.4.20.dist-info}/RECORD +10 -10
- {tksheet-7.4.19.dist-info → tksheet-7.4.20.dist-info}/WHEEL +0 -0
- {tksheet-7.4.19.dist-info → tksheet-7.4.20.dist-info}/licenses/LICENSE.txt +0 -0
- {tksheet-7.4.19.dist-info → tksheet-7.4.20.dist-info}/top_level.txt +0 -0
tksheet/__init__.py
CHANGED
tksheet/column_headers.py
CHANGED
@@ -326,7 +326,6 @@ class ColumnHeaders(tk.Canvas):
|
|
326
326
|
x = self.canvasx(event.x)
|
327
327
|
y = self.canvasy(event.y)
|
328
328
|
mouse_over_resize = False
|
329
|
-
mouse_over_selected = False
|
330
329
|
if self.width_resizing_enabled:
|
331
330
|
c = self.check_mouse_position_width_resizers(x, y)
|
332
331
|
if c is not None:
|
@@ -353,16 +352,16 @@ class ColumnHeaders(tk.Canvas):
|
|
353
352
|
self.rsz_h = None
|
354
353
|
except Exception:
|
355
354
|
self.rsz_h = None
|
356
|
-
if not mouse_over_resize
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
355
|
+
if not mouse_over_resize:
|
356
|
+
if self.MT.col_selected(self.MT.identify_col(event, allow_end=False)):
|
357
|
+
if self.current_cursor != "hand2":
|
358
|
+
self.config(cursor="hand2")
|
359
|
+
self.current_cursor = "hand2"
|
360
|
+
else:
|
361
|
+
if self.current_cursor != "":
|
362
|
+
self.config(cursor="")
|
363
|
+
self.current_cursor = ""
|
364
|
+
self.MT.reset_resize_vars()
|
366
365
|
try_binding(self.extra_motion_func, event)
|
367
366
|
|
368
367
|
def double_b1(self, event: Any) -> None:
|
tksheet/main_table.py
CHANGED
@@ -385,8 +385,8 @@ class MainTable(tk.Canvas):
|
|
385
385
|
|
386
386
|
def basic_bindings(self, enable: bool = True) -> None:
|
387
387
|
bindings = (
|
388
|
+
("<Enter>", self, self.mouse_motion),
|
388
389
|
("<Configure>", self, self.window_configured),
|
389
|
-
("<Motion>", self, self.mouse_motion),
|
390
390
|
("<ButtonPress-1>", self, self.b1_press),
|
391
391
|
("<B1-Motion>", self, self.b1_motion),
|
392
392
|
("<ButtonRelease-1>", self, self.b1_release),
|
@@ -3559,9 +3559,8 @@ class MainTable(tk.Canvas):
|
|
3559
3559
|
self.CH.rsz_h = None
|
3560
3560
|
|
3561
3561
|
def mouse_motion(self, event: Any) -> None:
|
3562
|
-
|
3563
|
-
|
3564
|
-
self.current_cursor = ""
|
3562
|
+
self.config(cursor="")
|
3563
|
+
self.current_cursor = ""
|
3565
3564
|
self.reset_resize_vars()
|
3566
3565
|
try_binding(self.extra_motion_func, event)
|
3567
3566
|
|
@@ -6183,7 +6182,7 @@ class MainTable(tk.Canvas):
|
|
6183
6182
|
and can_width >= self.col_positions[-1] + self.PAR.ops.empty_horizontal
|
6184
6183
|
and self.PAR.xscroll_showing
|
6185
6184
|
):
|
6186
|
-
self.PAR.xscroll.
|
6185
|
+
self.PAR.xscroll.grid_remove()
|
6187
6186
|
self.PAR.xscroll_showing = False
|
6188
6187
|
elif (
|
6189
6188
|
can_width < self.col_positions[-1] + self.PAR.ops.empty_horizontal
|
@@ -6191,10 +6190,10 @@ class MainTable(tk.Canvas):
|
|
6191
6190
|
and not self.PAR.xscroll_disabled
|
6192
6191
|
and can_height > 40
|
6193
6192
|
):
|
6194
|
-
self.PAR.xscroll.grid(
|
6193
|
+
self.PAR.xscroll.grid()
|
6195
6194
|
self.PAR.xscroll_showing = True
|
6196
6195
|
if can_height >= self.row_positions[-1] + self.PAR.ops.empty_vertical and self.PAR.yscroll_showing:
|
6197
|
-
self.PAR.yscroll.
|
6196
|
+
self.PAR.yscroll.grid_remove()
|
6198
6197
|
self.PAR.yscroll_showing = False
|
6199
6198
|
elif (
|
6200
6199
|
can_height < self.row_positions[-1] + self.PAR.ops.empty_vertical
|
@@ -6202,7 +6201,7 @@ class MainTable(tk.Canvas):
|
|
6202
6201
|
and not self.PAR.yscroll_disabled
|
6203
6202
|
and can_width > 40
|
6204
6203
|
):
|
6205
|
-
self.PAR.yscroll.grid(
|
6204
|
+
self.PAR.yscroll.grid()
|
6206
6205
|
self.PAR.yscroll_showing = True
|
6207
6206
|
|
6208
6207
|
def _overflow(
|
tksheet/row_index.py
CHANGED
@@ -322,8 +322,7 @@ class RowIndex(tk.Canvas):
|
|
322
322
|
x = self.canvasx(event.x)
|
323
323
|
y = self.canvasy(event.y)
|
324
324
|
mouse_over_resize = False
|
325
|
-
|
326
|
-
if self.height_resizing_enabled and not mouse_over_resize:
|
325
|
+
if self.height_resizing_enabled:
|
327
326
|
r = self.check_mouse_position_height_resizers(x, y)
|
328
327
|
if r is not None:
|
329
328
|
self.rsz_h, mouse_over_resize = r, True
|
@@ -358,19 +357,19 @@ class RowIndex(tk.Canvas):
|
|
358
357
|
self.rsz_w = None
|
359
358
|
except Exception:
|
360
359
|
self.rsz_w = None
|
361
|
-
if not mouse_over_resize
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
360
|
+
if not mouse_over_resize:
|
361
|
+
if self.MT.row_selected(self.MT.identify_row(event, allow_end=False)):
|
362
|
+
if self.current_cursor != "hand2":
|
363
|
+
self.config(cursor="hand2")
|
364
|
+
self.current_cursor = "hand2"
|
365
|
+
else:
|
366
|
+
if self.current_cursor != "":
|
367
|
+
self.config(cursor="")
|
368
|
+
self.current_cursor = ""
|
369
|
+
self.MT.reset_resize_vars()
|
371
370
|
try_binding(self.extra_motion_func, event)
|
372
371
|
|
373
|
-
def double_b1(self, event: Any):
|
372
|
+
def double_b1(self, event: Any) -> None:
|
374
373
|
self.mouseclick_outside_editor_or_dropdown_all_canvases(inside=True)
|
375
374
|
self.focus_set()
|
376
375
|
if (
|
@@ -416,7 +415,7 @@ class RowIndex(tk.Canvas):
|
|
416
415
|
self.mouse_motion(event)
|
417
416
|
try_binding(self.extra_double_b1_func, event)
|
418
417
|
|
419
|
-
def b1_press(self, event: Any):
|
418
|
+
def b1_press(self, event: Any) -> None:
|
420
419
|
self.MT.unbind("<MouseWheel>")
|
421
420
|
self.focus_set()
|
422
421
|
self.closed_dropdown = self.mouseclick_outside_editor_or_dropdown_all_canvases(inside=True)
|
@@ -485,7 +484,7 @@ class RowIndex(tk.Canvas):
|
|
485
484
|
self.toggle_select_row(r, redraw=True)
|
486
485
|
try_binding(self.extra_b1_press_func, event)
|
487
486
|
|
488
|
-
def b1_motion(self, event: Any):
|
487
|
+
def b1_motion(self, event: Any) -> None:
|
489
488
|
x1, y1, x2, y2 = self.MT.get_canvas_visible_area()
|
490
489
|
if self.height_resizing_enabled and self.rsz_h is not None and self.currently_resizing_height:
|
491
490
|
y = self.canvasy(event.y)
|
tksheet/sheet.py
CHANGED
@@ -446,7 +446,6 @@ class Sheet(tk.Frame):
|
|
446
446
|
style=f"Sheet{self.unique_id}.Vertical.TScrollbar",
|
447
447
|
)
|
448
448
|
self.MT["yscrollcommand"] = self.yscroll.set
|
449
|
-
self.RI["yscrollcommand"] = self.yscroll.set
|
450
449
|
self.xscroll = ttk.Scrollbar(
|
451
450
|
self,
|
452
451
|
command=self.MT._xscrollbar,
|
@@ -454,7 +453,6 @@ class Sheet(tk.Frame):
|
|
454
453
|
style=f"Sheet{self.unique_id}.Horizontal.TScrollbar",
|
455
454
|
)
|
456
455
|
self.MT["xscrollcommand"] = self.xscroll.set
|
457
|
-
self.CH["xscrollcommand"] = self.xscroll.set
|
458
456
|
self.show()
|
459
457
|
if show_top_left is False or (show_top_left is None and (not show_row_index or not show_header)):
|
460
458
|
self.hide("top_left")
|
@@ -1,22 +1,22 @@
|
|
1
|
-
tksheet/__init__.py,sha256=
|
1
|
+
tksheet/__init__.py,sha256=PpkbN7xCe4kL9f_ReQmjZFSjqrJtjldKtRMpIJXWnZM,2327
|
2
2
|
tksheet/colors.py,sha256=dHhmdFuQDlwohDHsAfT9VdrKoSl_R33L72a3HCin5zo,51591
|
3
|
-
tksheet/column_headers.py,sha256=
|
3
|
+
tksheet/column_headers.py,sha256=cP0RImb-EgHdVLSfNmU42k5GwCol7akKgMH6xq1sZfY,103339
|
4
4
|
tksheet/constants.py,sha256=aiDvUSaPtl_TSNtRRJ_p87c9iTBz9ksMd5IsSXzz4Hk,13316
|
5
5
|
tksheet/find_window.py,sha256=w6S0FZFLRNHiM57Oq97avALT_PctIBPegSxnkNUwkwk,19982
|
6
6
|
tksheet/formatters.py,sha256=DGcRiMsDJnySNpQcjfiX84oJ7TmOSMdU6u9injIhA4g,10095
|
7
7
|
tksheet/functions.py,sha256=qks2dLqBE9GMAuEXaA4qiU-rrL-dzmz4-tkmkp6_ETk,53037
|
8
|
-
tksheet/main_table.py,sha256=
|
8
|
+
tksheet/main_table.py,sha256=_VFoj01R4mS-m7JoDLG_36zkprweFGh0TYMalRRK4rE,366788
|
9
9
|
tksheet/other_classes.py,sha256=B2SrUAviztDUOPGoWkcu-AixqAaKwItshoVZPGe1_Tc,16662
|
10
|
-
tksheet/row_index.py,sha256=
|
11
|
-
tksheet/sheet.py,sha256=
|
10
|
+
tksheet/row_index.py,sha256=8zuNU00ATmz5oumEqSyB_nOUAIuCS23mUfTpq3R1WOM,141611
|
11
|
+
tksheet/sheet.py,sha256=MXt-ebQJVx-l4lozRqCxhivMMaCC7JpOD7wzfVj0rRk,269777
|
12
12
|
tksheet/sheet_options.py,sha256=ob-XYgGfBoi2TaFAvUUmlWUkw9xB-yXmJw17gu9__Lw,9948
|
13
13
|
tksheet/sorting.py,sha256=zcZPpRtP1h_xJGtGkG3E43H7deKQFnh9cMwZ1B2-aGc,17502
|
14
14
|
tksheet/text_editor.py,sha256=rU8Fz0-ltkM63W9io2DoZJPyzUGzCc9Z0qBtc4D1H40,7404
|
15
15
|
tksheet/themes.py,sha256=AoNAxibnQi04MN0Zpbn9-kyDnkiiV8TDNWP9FYjpuf0,18473
|
16
16
|
tksheet/tksheet_types.py,sha256=1MjXR34EmvP1KfHlLTvKKVnf0VMz_LU_WOM2q4o5hfI,4598
|
17
17
|
tksheet/top_left_rectangle.py,sha256=M52IrPIeMoYE3jSpooZmqw_0W5Fz_R-Yu1ZqA685EZ8,8557
|
18
|
-
tksheet-7.4.
|
19
|
-
tksheet-7.4.
|
20
|
-
tksheet-7.4.
|
21
|
-
tksheet-7.4.
|
22
|
-
tksheet-7.4.
|
18
|
+
tksheet-7.4.20.dist-info/licenses/LICENSE.txt,sha256=ndbcCPe9SlHfweE_W2RAueWUe2k7yudyxYLq6WjFdn4,1101
|
19
|
+
tksheet-7.4.20.dist-info/METADATA,sha256=esWuLkorvJ4si2jups_4X0Qrvg60SVupWtLRG1D89Og,8117
|
20
|
+
tksheet-7.4.20.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
21
|
+
tksheet-7.4.20.dist-info/top_level.txt,sha256=my61PXCcck_HHAc9cq3NAlyAr3A3FXxCy9gptEOaCN8,8
|
22
|
+
tksheet-7.4.20.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|