This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gbarnabic
Recipients gbarnabic
Date 2016-02-18.16:30:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1455813008.22.0.795281140329.issue26386@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-02-18 16:30:08gbarnabicsetrecipients: + gbarnabic
2016-02-18 16:30:08gbarnabicsetmessageid: <1455813008.22.0.795281140329.issue26386@psf.upfronthosting.co.za>
2016-02-18 16:30:08gbarnabiclinkissue26386 messages
2016-02-18 16:30:07gbarnabiccreate