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 <rep...@bugs.python.org> <http://bugs.python.org/issue26386> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com