tkinter: allow index to be "end" in Treeview.move (#13454)

This commit is contained in:
/ˈɛvən/
2025-02-03 07:43:28 -05:00
committed by GitHub
parent 8db4dc186f
commit aac4394eb2

View File

@@ -1100,7 +1100,7 @@ class Treeview(Widget, tkinter.XView, tkinter.YView):
open: bool = ...,
tags: str | list[str] | tuple[str, ...] = ...,
) -> None: ...
def move(self, item: str | int, parent: str, index: int) -> None: ...
def move(self, item: str | int, parent: str, index: int | Literal["end"]) -> None: ...
reattach = move
def next(self, item: str | int) -> str: ... # returning empty string means last item
def parent(self, item: str | int) -> str: ...