[issue22769] Tttk tag_has() throws TypeError when called without item

2014-11-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b3a5b53173c0 by Serhiy Storchaka in branch '2.7':
Issue #22769: Fixed ttk.Treeview.tag_has() when called without arguments.
https://hg.python.org/cpython/rev/b3a5b53173c0

New changeset cd17aa63492e by Serhiy Storchaka in branch '3.4':
Issue #22769: Fixed ttk.Treeview.tag_has() when called without arguments.
https://hg.python.org/cpython/rev/cd17aa63492e

New changeset 0b56adcb737d by Serhiy Storchaka in branch 'default':
Issue #22769: Fixed ttk.Treeview.tag_has() when called without arguments.
https://hg.python.org/cpython/rev/0b56adcb737d

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22769
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22769] Tttk tag_has() throws TypeError when called without item

2014-11-07 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
resolution:  - fixed
stage: patch review - resolved
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22769
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22769] Tttk tag_has() throws TypeError when called without item

2014-10-31 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank your for your report David.

Here is a patch which fixes the bug and adds tests for Treeview.tag_has().

--
stage: needs patch - patch review

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22769
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22769] Tttk tag_has() throws TypeError when called without item

2014-10-30 Thread David Durrett

New submission from David Durrett:

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.

--
components: Tkinter
messages: 230305
nosy: ddurrett, gpolo, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Tttk tag_has() throws TypeError when called without item
type: behavior
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22769
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22769] Tttk tag_has() throws TypeError when called without item

2014-10-30 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
assignee:  - serhiy.storchaka
stage:  - needs patch
versions: +Python 3.4, Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22769
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com