This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ddurrett
Recipients ddurrett, gpolo, serhiy.storchaka
Date 2014-10-30.22:58:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1414709925.15.0.196086635074.issue22769@psf.upfronthosting.co.za>
In-reply-to
Content
Have only tried this on Python 2.7

To reproduce:

~~~~~
from Tkinter import *
import ttk

root = Tk()
tree = ttk.Treeview(root)

id = tree.insert('' , 'end', text='foo', tag='bar')
print tree.tag_has('bar', item=id)
# ^ this works..
print tree.tag_has('baz', item=id)
# ^ .. and this..
print tree.tag_has('bar')
# ^ .. this doesn't.
~~~~~
...
    self.tk.call(self._w, "tag", "has", tagname, item))
TypeError: must be string, not tuple

Possibly introduced by Issue20072.

Removing the self.tk.getboolean() wrapper in tag_has() appears to fix things.
History
Date User Action Args
2014-10-30 22:58:45ddurrettsetrecipients: + ddurrett, gpolo, serhiy.storchaka
2014-10-30 22:58:45ddurrettsetmessageid: <1414709925.15.0.196086635074.issue22769@psf.upfronthosting.co.za>
2014-10-30 22:58:45ddurrettlinkissue22769 messages
2014-10-30 22:58:45ddurrettcreate