
This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.
Created on2014-10-30 22:58 byddurrett, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.
| Messages (3) | |||
|---|---|---|---|
| msg230305 -(view) | Author: David Durrett (ddurrett) | Date: 2014-10-30 22:58 | |
Have only tried this on Python 2.7To reproduce:~~~~~from Tkinter import *import ttkroot = 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 tuplePossibly introduced byIssue20072.Removing the self.tk.getboolean() wrapper in tag_has() appears to fix things. | |||
| msg230357 -(view) | Author: Serhiy Storchaka (serhiy.storchaka)*![]() | Date: 2014-10-31 17:12 | |
Thank your for your report David.Here is a patch which fixes the bug and adds tests for Treeview.tag_has(). | |||
| msg230781 -(view) | Author: Roundup Robot (python-dev)![]() | Date: 2014-11-07 10:12 | |
New changesetb3a5b53173c0 by Serhiy Storchaka in branch '2.7':Issue#22769: Fixed ttk.Treeview.tag_has() when called without arguments.https://hg.python.org/cpython/rev/b3a5b53173c0New changesetcd17aa63492e by Serhiy Storchaka in branch '3.4':Issue#22769: Fixed ttk.Treeview.tag_has() when called without arguments.https://hg.python.org/cpython/rev/cd17aa63492eNew changeset0b56adcb737d by Serhiy Storchaka in branch 'default':Issue#22769: Fixed ttk.Treeview.tag_has() when called without arguments.https://hg.python.org/cpython/rev/0b56adcb737d | |||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:58:09 | admin | set | github: 66958 |
| 2014-11-07 10:36:21 | serhiy.storchaka | set | status: open -> closed resolution: fixed stage: patch review -> resolved |
| 2014-11-07 10:12:44 | python-dev | set | nosy: +python-dev messages: +msg230781 |
| 2014-10-31 17:12:03 | serhiy.storchaka | set | messages: +msg230357 stage: needs patch -> patch review |
| 2014-10-30 23:18:03 | serhiy.storchaka | set | assignee:serhiy.storchaka stage: needs patch versions: + Python 3.4, Python 3.5 |
| 2014-10-30 22:58:45 | ddurrett | create | |