Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue22769

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:Tttk tag_has() throws TypeError when called without item
Type:behaviorStage:resolved
Components:TkinterVersions:Python 3.4, Python 3.5, Python 2.7
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To: serhiy.storchakaNosy List: ddurrett, gpolo, python-dev, serhiy.storchaka
Priority:normalKeywords:

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)*(Python committer)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)(Python triager)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
DateUserActionArgs
2022-04-11 14:58:09adminsetgithub: 66958
2014-11-07 10:36:21serhiy.storchakasetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2014-11-07 10:12:44python-devsetnosy: +python-dev
messages: +msg230781
2014-10-31 17:12:03serhiy.storchakasetmessages: +msg230357
stage: needs patch -> patch review
2014-10-30 23:18:03serhiy.storchakasetassignee:serhiy.storchaka
stage: needs patch
versions: + Python 3.4, Python 3.5
2014-10-30 22:58:45ddurrettcreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp