mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Issue #22769: Fixed ttk.Treeview.tag_has() when called without arguments.
This commit is contained in:
parent
72a7f7c476
commit
8e92f57274
3 changed files with 23 additions and 2 deletions
|
@ -1456,7 +1456,11 @@ class Treeview(Widget, tkinter.XView, tkinter.YView):
|
|||
all items which have the specified tag.
|
||||
|
||||
* Availability: Tk 8.6"""
|
||||
return self.tk.getboolean(
|
||||
if item is None:
|
||||
return self.tk.splitlist(
|
||||
self.tk.call(self._w, "tag", "has", tagname))
|
||||
else:
|
||||
return self.tk.getboolean(
|
||||
self.tk.call(self._w, "tag", "has", tagname, item))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue