tksheet 7.4.19__tar.gz → 7.4.20__tar.gz

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.
Files changed (26) hide show
  1. {tksheet-7.4.19/tksheet.egg-info → tksheet-7.4.20}/PKG-INFO +1 -1
  2. {tksheet-7.4.19 → tksheet-7.4.20}/pyproject.toml +1 -1
  3. {tksheet-7.4.19 → tksheet-7.4.20}/tksheet/__init__.py +1 -1
  4. {tksheet-7.4.19 → tksheet-7.4.20}/tksheet/column_headers.py +10 -11
  5. {tksheet-7.4.19 → tksheet-7.4.20}/tksheet/main_table.py +7 -8
  6. {tksheet-7.4.19 → tksheet-7.4.20}/tksheet/row_index.py +14 -15
  7. {tksheet-7.4.19 → tksheet-7.4.20}/tksheet/sheet.py +0 -2
  8. {tksheet-7.4.19 → tksheet-7.4.20/tksheet.egg-info}/PKG-INFO +1 -1
  9. {tksheet-7.4.19 → tksheet-7.4.20}/LICENSE.txt +0 -0
  10. {tksheet-7.4.19 → tksheet-7.4.20}/README.md +0 -0
  11. {tksheet-7.4.19 → tksheet-7.4.20}/setup.cfg +0 -0
  12. {tksheet-7.4.19 → tksheet-7.4.20}/tksheet/colors.py +0 -0
  13. {tksheet-7.4.19 → tksheet-7.4.20}/tksheet/constants.py +0 -0
  14. {tksheet-7.4.19 → tksheet-7.4.20}/tksheet/find_window.py +0 -0
  15. {tksheet-7.4.19 → tksheet-7.4.20}/tksheet/formatters.py +0 -0
  16. {tksheet-7.4.19 → tksheet-7.4.20}/tksheet/functions.py +0 -0
  17. {tksheet-7.4.19 → tksheet-7.4.20}/tksheet/other_classes.py +0 -0
  18. {tksheet-7.4.19 → tksheet-7.4.20}/tksheet/sheet_options.py +0 -0
  19. {tksheet-7.4.19 → tksheet-7.4.20}/tksheet/sorting.py +0 -0
  20. {tksheet-7.4.19 → tksheet-7.4.20}/tksheet/text_editor.py +0 -0
  21. {tksheet-7.4.19 → tksheet-7.4.20}/tksheet/themes.py +0 -0
  22. {tksheet-7.4.19 → tksheet-7.4.20}/tksheet/tksheet_types.py +0 -0
  23. {tksheet-7.4.19 → tksheet-7.4.20}/tksheet/top_left_rectangle.py +0 -0
  24. {tksheet-7.4.19 → tksheet-7.4.20}/tksheet.egg-info/SOURCES.txt +0 -0
  25. {tksheet-7.4.19 → tksheet-7.4.20}/tksheet.egg-info/dependency_links.txt +0 -0
  26. {tksheet-7.4.19 → tksheet-7.4.20}/tksheet.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tksheet
3
- Version: 7.4.19
3
+ Version: 7.4.20
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
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
6
6
  name = "tksheet"
7
7
  description = "Tkinter table / sheet and treeview widget"
8
8
  readme = "README.md"
9
- version = "7.4.19"
9
+ version = "7.4.20"
10
10
  authors = [{ name = "ragardner", email = "github@ragardner.simplelogin.com" }]
11
11
  requires-python = ">=3.8"
12
12
  license = {file = "LICENSE.txt"}
@@ -4,7 +4,7 @@
4
4
  tksheet - A Python tkinter table widget
5
5
  """
6
6
 
7
- __version__ = "7.4.19"
7
+ __version__ = "7.4.20"
8
8
 
9
9
  from .colors import (
10
10
  color_map,
@@ -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 and self.MT.col_selected(self.MT.identify_col(event, allow_end=False)):
357
- mouse_over_selected = True
358
- if self.current_cursor != "hand2":
359
- self.config(cursor="hand2")
360
- self.current_cursor = "hand2"
361
- if not mouse_over_resize and not mouse_over_selected:
362
- if self.current_cursor != "":
363
- self.config(cursor="")
364
- self.current_cursor = ""
365
- self.MT.reset_resize_vars()
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:
@@ -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
- if self.current_cursor != "":
3563
- self.config(cursor="")
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.grid_forget()
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(row=2, column=0, columnspan=2, sticky="nswe")
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.grid_forget()
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(row=0, column=2, rowspan=3, sticky="nswe")
6204
+ self.PAR.yscroll.grid()
6206
6205
  self.PAR.yscroll_showing = True
6207
6206
 
6208
6207
  def _overflow(
@@ -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
- mouse_over_selected = False
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 and self.MT.row_selected(self.MT.identify_row(event, allow_end=False)):
362
- mouse_over_selected = True
363
- if self.current_cursor != "hand2":
364
- self.config(cursor="hand2")
365
- self.current_cursor = "hand2"
366
- if not mouse_over_resize and not mouse_over_selected:
367
- if self.current_cursor != "":
368
- self.config(cursor="")
369
- self.current_cursor = ""
370
- self.MT.reset_resize_vars()
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)
@@ -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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tksheet
3
- Version: 7.4.19
3
+ Version: 7.4.20
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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes