[New-bugs-announce] [issue26386] tkinter - Treeview - .selection_add and selection_toggle
George
report at bugs.python.org
Thu Feb 18 11:30:08 EST 2016
New submission from George:
Id's with spaces in them causes a crash when using the .selection* methods Treeview. Version of ttk.py "0.3.1" dated 12/6/2015. Traceback line numbers are 1415 then 1395
Either of these lines of code, where the item id is "2009 Report.pdf" crash
allParents = oTree.get_children()
for id in allParents:
oTree.selection_add(id)
# oTree.selection_toggle(id)
These two lines of workaround code do work however.
oTree.selection_add('"' + id + '"')
# oTree.selection_toggle('"' + id + '"')
Note that so far all other places in dealing with the item id's have no issue when there are spaces in them.
----------
components: Tkinter
messages: 260469
nosy: gbarnabic
priority: normal
severity: normal
status: open
title: tkinter - Treeview - .selection_add and selection_toggle
type: crash
versions: Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26386>
_______________________________________
More information about the New-bugs-announce
mailing list