diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-11-07 10:02:31 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-11-07 10:02:31 (GMT) |
commit | 8e92f5727414815fce9a12ded1acfb7e13037e85 (patch) | |
tree | 8bbf7b8b5517b71d88cbdea5a058fc579d120523 /Lib/tkinter/ttk.py | |
parent | 72a7f7c476841dde6977f099cc63807df5858c2d (diff) | |
download | cpython-8e92f5727414815fce9a12ded1acfb7e13037e85.zip cpython-8e92f5727414815fce9a12ded1acfb7e13037e85.tar.gz cpython-8e92f5727414815fce9a12ded1acfb7e13037e85.tar.bz2 |
Issue #22769: Fixed ttk.Treeview.tag_has() when called without arguments.
Diffstat (limited to 'Lib/tkinter/ttk.py')
-rw-r--r-- | Lib/tkinter/ttk.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/tkinter/ttk.py b/Lib/tkinter/ttk.py index 29d225c..4327dbb 100644 --- a/Lib/tkinter/ttk.py +++ b/Lib/tkinter/ttk.py @@ -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)) |