Issue #22769: Fixed ttk.Treeview.tag_has() when called without arguments.

This commit is contained in:
Serhiy Storchaka 2014-11-07 12:02:31 +02:00
parent 72a7f7c476
commit 8e92f57274
3 changed files with 23 additions and 2 deletions

View file

@ -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))